コード例 #1
0
        public int GetBooks(string guid)
        {
            int result = -1;

            try
            {
                using (var db = ProjectDBContext.Create())
                {
                    result = db.Database.ExecuteSqlCommand("update MasterUser set ModifiedBy = 'teguh'");
                }
            }
            catch (Exception E)
            {
                throw new Exception(ExceptionHandler.GetExceptionMessageDeeper(E));
            }

            return(result);
        }