Weiferl.Database.EF/Weiferl.Databas.EF/WeiferlDb.cs
2023-07-09 11:15:44 +02:00

31 lines
832 B
C#

using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using Weiferl.Databas.EF.Models;
namespace Weiferl.Databas.EF;
public partial class WeiferlDb : DbContext
{
public WeiferlDb()
{
}
public WeiferlDb(DbContextOptions<WeiferlDb> options)
: base(options)
{
}
public virtual DbSet<User> Users { get; set; }
public virtual DbSet<Countrie> Countries { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseMySql("server=192.168.0.252;port=3306;database=weiferl_db;uid=root;pwd=op3iv2dbym", ServerVersion.Parse("10.11.4-mariadb"));
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}