Weiferl.Database.EF/Weiferl.Databas.EF/WeiferlDb.cs

31 lines
818 B
C#
Raw Normal View History

2023-07-09 11:15:39 +02:00
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)
2023-07-25 20:20:29 +02:00
=> optionsBuilder.UseSqlServer("server=weiferl.database.windows.net;database=Weiferl_DB;uid=weiferl;pwd=FNpQNssF4qdXZGiMf8nD2PfV");
2023-07-09 11:15:39 +02:00
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}