public DataInit(WASContext wASContext) { this.wASContext = wASContext; this.userInit = new UserInit(this.wASContext); this.walletInit = new WalletInit(this.wASContext); this.categoryInit = new CategoryInit(this.wASContext); this.transactionInit = new TransactionInit(this.wASContext); }
public UOW(WASContext wASContext) { this.wASContext = wASContext; UserRepository = new UserRepository(this.wASContext); CategoryRepository = new CategoryRepository(this.wASContext); WalletRepository = new WalletRepository(this.wASContext); TransactionRepository = new TransactionRepository(this.wASContext); }
static void Main(string[] args) { var config = new ConfigurationBuilder() .AddJsonFile("appsettings.json") .Build(); string connectionString = config.GetConnectionString("WASContext"); var options = new DbContextOptionsBuilder <WASContext>() .UseNpgsql(connectionString) .Options; WASContext = new WASContext(options); EntityFrameworkManager.ContextFactory = DbContext => WASContext; DataInit dataInit = new DataInit(WASContext); dataInit.Init(); }
public WalletInit(WASContext wASContext) : base(wASContext) { WalletCodes = new List <string>(); }
public CommonInit(WASContext wASContext) { this.wASContext = wASContext; }
public CategoryRepository(WASContext wASContext) { this.wASContext = wASContext; }
public UserRepository(WASContext wASContext) { this.wASContext = wASContext; }
public TransactionRepository(WASContext wASContext) { this.wASContext = wASContext; }
public TransactionInit(WASContext wASContext) : base(wASContext) { TransactionCodes = new List <string>(); }
public CategoryInit(WASContext wASContext) : base(wASContext) { CategoryCodes = new List <string>(); }
public WalletRepository(WASContext wASContext) { this.wASContext = wASContext; }
public UserInit(WASContext wASContext) : base(wASContext) { UserCodes = new List <string>(); }