示例#1
0
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            WalletTable.Configure(modelBuilder);
            WalletSeed.Configure(modelBuilder);

            WalletGroupTable.Configure(modelBuilder);
            WalletGroupSeed.Configure(modelBuilder);

            WalletGroupItemTable.Configure(modelBuilder);
            WalletGroupItemSeed.Configure(modelBuilder);
        }
示例#2
0
 public WalletModel[] Get()
 {
     return(WalletTable.Read());
 }
示例#3
0
 public WalletModel GetWallet(string walletName)
 {
     return(WalletTable.ReadOne(walletName));
 }
示例#4
0
 public bool Create(WalletModel wallet)
 {
     return(WalletTable.Create(wallet.Name, wallet, false));
 }