Exemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            M_WareHouse e007 = new M_WareHouse();

            e007.Active  = true;
            e007.Address = "JNM";
            e007.Id      = 1;
            e007.Name    = "JNMG";

            Console.WriteLine("Cache response from storing Employee .NET object : " +
                              cache.StringSet("e007", JsonConvert.SerializeObject(e007)));

            // Retrieve .NET object from cache
            M_WareHouse e007FromCache = JsonConvert.DeserializeObject <M_WareHouse>(cache.StringGet("e007"));

            Console.WriteLine("Deserialized Employee .NET object :\n");
            Console.WriteLine("\tEmployee.Name : " + e007FromCache.Name);
            Console.WriteLine("\tEmployee.Id   : " + e007FromCache.Id);
        }
Exemplo n.º 2
0
 public bool Update(int id, M_WareHouse model)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public bool Insert(M_WareHouse model)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 internal W_Warehouse(ViewType vista, M_WareHouse item) : this()
 {
     _vista           = vista;
     _item            = item;
     this.DataContext = _item;
 }