Add APISocietyToolBox source files
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using APISocietyToolBox.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
|
||||
namespace APISocietyToolBox.Data
|
||||
{
|
||||
public class DataContext : DbContext
|
||||
{
|
||||
public DataContext(DbContextOptions<DataContext> options) : base(options) { }
|
||||
public DbSet<UserResponseModel> UserCRUD { get; set; }
|
||||
public DbSet<LoginResponseModel> LoginUserValidate { get; set; }
|
||||
public DbSet<UserTokenModel> getUserToken { get; set; }
|
||||
public DbSet<UserTokensHistory> UserTokensHistory { get; set; }
|
||||
public DbSet<DashBoardOutandingSummaryModel> getDashboardOutstandingSummary { get; set; }
|
||||
public DbSet<DashBoardTransactionsModel> getDashboardTransactions { get; set; }
|
||||
public DbSet<MemberBillsListModel> GetMemberBillList { get; set; }
|
||||
public DbSet<BillsDetailsModel> GetBillDetails { get; set; }
|
||||
public DbSet<ResponseNoticeBoardModel> DbNoticeBoard { get; set; }
|
||||
public DbSet<NoticeBoardMessageModel> GetNoticeBoardMessages { get; set; }
|
||||
public DbSet<MemberTransactionsListModel> GetMemberTransactionsList { get; set; }
|
||||
public DbSet<PropertyUnitLedgerReportsModel> GetPropertyUnitLedgerReport { get; set; }
|
||||
public DbSet<PropertyUnitUserModel> GetPropertyUnitsForUsers { get; set; }
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<UserTokenModel>().HasNoKey();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user