Exemplo n.º 1
0
 public static StorageItemRow NewRowDefault()
 {
     if (defaultStorageItemDT == null)
     {
         defaultStorageItemDT = new StorageItemDT();
         MyDbConnection.Instance.FillDataTable(defaultStorageItemDT, "SELECT * FROM [StorageItem] WHERE 1 > 1");
     }
     return((StorageItemRow)defaultStorageItemDT.NewRow());
 }
Exemplo n.º 2
0
        public static StorageItemDT GetDefaultStorageItemDT()
        {
            if (defaultStorageItemDT == null)
            {
                defaultStorageItemDT = new StorageItemDT();
                MyDbConnection.Instance.FillDataTable(defaultStorageItemDT, "SELECT * FROM [StorageItem] WHERE 1 > 1");
            }

            return(defaultStorageItemDT);
        }