34 lines
859 B
C#
34 lines
859 B
C#
using Bitget_Server.Common;
|
|
using Bitget_Server.EFCore.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Bitget_Server.EFCore
|
|
{
|
|
public class BitgetContext : DbContext
|
|
{
|
|
|
|
public DbSet<PushAlarm> PushAlarms { get; set; }
|
|
|
|
public BitgetContext(DbContextOptions<BitgetContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
optionsBuilder.UseSqlServer(CommonProperty.EfCoreConnectionStr);
|
|
base.OnConfiguring(optionsBuilder);
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
}
|
|
}
|