コード例 #1
0
ファイル: Program.cs プロジェクト: Drazel/Warehouse
        static void Main(string[] args)
        {
            var socect = new WarehouseSocet
                         {
                             Length = 10,
                             Height = 10, MaxWeight = 10,
                             RowBookstand = 1,
                             ShelfBookstand = 10,
                             SocetNumber = 123,
                             UseVolume = 0,
                             UseWeight = 0,
                             Width = 12
                         };

            var rep = new WarehouseSocetRepository();
            socect = rep.GetById("55e0816e546c551fb48775ff");

            rep.Update(socect);
        }
コード例 #2
0
ファイル: SocetProducts.cs プロジェクト: Drazel/Warehouse
 public SocetProducts(Product product, WarehouseSocet warehouseSocet)
 {
     WarehouseSocetId = new MongoDBRef("WarehouseSocet", warehouseSocet.Id);
     ProductId = new MongoDBRef("Product", product.Id);
     this.TimeStamp = DateTime.Now;
 }
コード例 #3
0
 public SocetProducts(Product product, WarehouseSocet warehouseSocet)
 {
     WarehouseSocetId = new MongoDBRef("WarehouseSocet", warehouseSocet.Id);
     ProductId        = new MongoDBRef("Product", product.Id);
     this.TimeStamp   = DateTime.Now;
 }
コード例 #4
0
 public static BoolResult UpdateWarehouseSocet(WarehouseSocet warehouseSocet)
 {
     return ServiceManager.Call<WarehouseSocetClient, BoolResult>(c => c.UpdateWarehouseSocet(warehouseSocet));
 }