static double efSelectRows()
        {
            DateTime start = DateTime.Now;

            var eFactory = new XMS_ColaEntities();

            var list = eFactory.JCEFSelectTestSP();

            return(DateTime.Now.Subtract(start).TotalSeconds);
        }
        static double msEFvariantInsertOnly(int numberIterations)
        {
            DateTime start = DateTime.Now;

            var eFactory = new XMS_ColaEntities();


            eFactory.JCEFExecuteTestSP();

            return(DateTime.Now.Subtract(start).TotalSeconds);
        }
Beispiel #3
0
        public List <jcSelectTest> GET(bool useEF)
        {
            List <jcSelectTest> list;

            if (useEF)
            {
                var eFactory = new XMS_ColaEntities();

                list = eFactory.JCEFSelectTestSP().ToList().Select(a => new jcSelectTest {
                    Active = a.Active, Created = a.Created, Description = a.Description, Enabled = a.Enabled, ID = a.ID, Modified = a.Modified, Name = a.Name, StoredProcedure = a.StoredProcedure, XMS_ModuleID = a.XMS_ModuleID
                }).ToList();
            }
            else
            {
                var jFactory = new jcEntityFactory();

                list = jFactory.JCEFSelectTestSP().Select(a => new jcSelectTest {
                    Active = a.Active, Created = a.Created, Description = a.Description, Enabled = a.Enabled, ID = a.ID, Modified = a.Modified, Name = a.Name, StoredProcedure = a.StoredProcedure, XMS_ModuleID = a.XMS_ModuleID
                }).ToList();
            }

            return(list);
        }