Example #1
0
        static void SaveBinary()
        {
            IFileDbBll <TestModel> bll = FileBllFactory.GetBinaryBll <TestModel>();
            TestModel model            = GetModel();

            bll.Insert(model);
        }
Example #2
0
        static void Main(string[] args)
        {
            SaveBinary();

            IFileDbBll <TestModel> bll  = FileBllFactory.GetBinaryBll <TestModel>();
            List <TestModel>       data = bll.SelectAll();

            Console.WriteLine(data.Count);
            //      Console.Read();
        }
Example #3
0
        static void SaveBinary()
        {
            IFileDbBll <TestModel> bll = FileBllFactory <TestModel> .GetBinaryBll(ENUM_SAVE_FILE_NUM.HUNDRED_FILE);

            List <TestModel> list = new List <TestModel>(1000000);

            for (int i = 0; i < 100000; i++)
            {
                TestModel model = TestModel.GetModel();
                list.Add(model);
            }
            bll.Insert(list);
        }
Example #4
0
 private void Init()
 {
     this.Bll = FileBllFactory <T> .GetBinaryBll();
 }