static void SaveBinary() { IFileDbBll <TestModel> bll = FileBllFactory.GetBinaryBll <TestModel>(); TestModel model = GetModel(); bll.Insert(model); }
static void Main(string[] args) { SaveBinary(); IFileDbBll <TestModel> bll = FileBllFactory.GetBinaryBll <TestModel>(); List <TestModel> data = bll.SelectAll(); Console.WriteLine(data.Count); // Console.Read(); }
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); }
private void Init() { this.Bll = FileBllFactory <T> .GetBinaryBll(); }