Weiferl.Database.EF/Weiferl.Databas.EF/WeiferlDb.cs
Marcus Ferl 82783d2a99 init
2023-07-25 20:20:29 +02:00

31 lines
818 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.UseSqlServer("server=weiferl.database.windows.net;database=Weiferl_DB;uid=weiferl;pwd=FNpQNssF4qdXZGiMf8nD2PfV");
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}