示例#1
0
 //SQL Server CE doesn't support stored procedures.
 public void CallStoredProcedure()
 {
     using (var entities = new IdEntities())
     {
         var result = entities.MaxRoot();
     }
 }
示例#2
0
        public void CallStoredProcedure()
        {
            double result;

            using (var entities = new IdEntities())
            {
                result = entities.MaxRoot().FirstOrDefault().GetValueOrDefault();
            }

            Assert.AreEqual(Math.Sqrt(TestSeeds), result);
        }