Esempio n. 1
0
        public bool CreateRole(Role instance)
        {
            if (instance.ID == 0)
            {
                Db.Roles.InsertOnSubmit(instance);
                Db.Roles.Context.SubmitChanges();
                return true;
            }

            return false;
        }
 partial void DeleteRole(Role instance);
 partial void UpdateRole(Role instance);
 partial void InsertRole(Role instance);