31 lines
818 B
C#
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);
|
|
}
|