Ejemplo n.º 1
0
 public Inventory(int ID,
                  Enums.Entity_Type Entity_Type,
                  int Container_ID,
                  int Capacity)
 {
     NewInventory(ID, Entity_Type, Container_ID, Capacity);
 }
Ejemplo n.º 2
0
 public MetaDataToEntity(int ID,
                         Enums.Entity_Type Entity_Type,
                         string MetaData_Key,
                         string Value)
 {
     NewMetaDataToEntity(ID, Entity_Type, MetaData_Key, Value);
 }
Ejemplo n.º 3
0
 private void NewInventory(int ID,
                           Enums.Entity_Type Entity_Type,
                           int Container_ID,
                           int Capacity)
 {
     this.ID           = ID;
     this.Entity_Type  = Entity_Type;
     this.Container_ID = Container_ID;
     this.Capacity     = Capacity;
 }
Ejemplo n.º 4
0
 private void NewMetaDataToEntity(int ID,
                                  Enums.Entity_Type Entity_Type,
                                  string MetaData_Key,
                                  string Value)
 {
     this.ID           = ID;
     this.Entity_Type  = Entity_Type;
     this.MetaData_Key = MetaData_Key;
     this.Value        = Value;
 }
Ejemplo n.º 5
0
    /*######################################################################################*/
    //   List Searching
    /*######################################################################################*/

    public List <Inventory> FindByInventoryType(Enums.Entity_Type Inventory_Type)
    {
        List <Inventory> foundItem = null;

        var obj = from src in Inventories
                  where src.Entity_Type == Inventory_Type
                  select src;

        foundItem = obj.ToList();
        return(foundItem);
    }