private static void MakeDB <ValueType, KeyType> (ref Table <ValueType, KeyType> TBL, string Name, Func <ValueType, KeyType> GetKey) where KeyType : IComparable <KeyType> { TBL = new Monsajem_Incs.Database.KeyValue.DirBased.Table <ValueType, KeyType>( DBAddress + Name, GetKey, ISUpdateAble); }
public static void TestLocalStorage() { var tbl = new Monsajem_Incs.Database.KeyValue.DirBased.Table <Person, string>( Environment.CurrentDirectory + "\\tbl_Peson", (c) => c.Name, true); tbl.Insert((c) => c.Name = "ali"); var Result2 = tbl[0].Value.Name; }