Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 public WalletInit(WASContext wASContext) : base(wASContext)
 {
     WalletCodes = new List <string>();
 }
Ejemplo n.º 5
0
 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>();
 }
Ejemplo n.º 10
0
 public CategoryInit(WASContext wASContext) : base(wASContext)
 {
     CategoryCodes = new List <string>();
 }
 public WalletRepository(WASContext wASContext)
 {
     this.wASContext = wASContext;
 }
Ejemplo n.º 12
0
 public UserInit(WASContext wASContext) : base(wASContext)
 {
     UserCodes = new List <string>();
 }