Exemplo n.º 1
0
        public void TestDBStringArrayParameter2()
        {
            var operation  = new DbCommandOperation <Company, GetCompanies2>("Local");
            var parameters = new GetCompanies2()
            {
                Id = new int[] { 1, 3, 6, 9 }
            };
            IEnumerable <Company> _result = operation.ExecuteReader(parameters);

            var _resultMaterialized = _result.ToList();
        }
Exemplo n.º 2
0
        public void TestCreateNewDataProvider()
        {
            var operation = new DbCommandOperation <Company, GetCompanyAll>("LocalCustom");

            operation.PreExecute += Operation_PreExecute;
            IEnumerable <Company> _result = operation.ExecuteReader(new GetCompanyAll()
            {
            });

            var _resultMaterialized = _result.ToList();
        }
Exemplo n.º 3
0
        public void SelectAll()
        {
            var operation = new DbCommandOperation <Company, GetCompanyAll>("Local");
            IEnumerable <Company> _result = operation.ExecuteReader(new GetCompanyAll()
            {
            });
            var _resultMaterialized = _result.ToList();

            var operation2 = new DbCommandOperation <Company, GetCompanyAll>("Local");
            IEnumerable <Company> _result2 = operation2.ExecuteReader(new GetCompanyAll()
            {
            });
            var _resultMaterialized2 = _result2.ToList();
        }
        public void SelectAll()
        {
            var operation = new DbCommandOperation <Company, GetCompanyAll>("Local");
            IEnumerable <Company> _result = operation.ExecuteReader(new GetCompanyAll()
            {
            });

            StopWatch _watch = new StopWatch();

            _watch.Start();

            var _resultMaterialized = _result.ToList();

            _watch.Stop();

            Console.WriteLine(_watch.Duration);
        }