public void UpdateCategory(Category param) { // Get sysdate var currentDate = DateTime.Now; // Set item var entity = GetSingle<Category>(param.CategoryCd, true); entity.CategoryName = param.CategoryName; entity.CategorySearchName = param.CategorySearchName; entity.CategoryDiv = param.CategoryDiv; entity.SortKey = param.SortKey; entity.DeleteFlag = param.DeleteFlag; entity.UpdateUser = PageHelper.UserName; entity.UpdateDate = currentDate; }
public void InsertCategory(SaveDataModel inputObject) { // Get sysdate var currentDate = DateTime.Now; // Set item var entity = new Category(); entity.CategoryCd = inputObject.CategoryCd; entity.CategoryName = inputObject.CategoryName; entity.CategorySearchName = inputObject.CategorySearchName; entity.CategoryDiv = inputObject.CategoryDiv; entity.Notes = string.Empty; entity.SortKey = inputObject.SortKey; entity.CreateUser = PageHelper.UserName; entity.CreateDate = currentDate; entity.UpdateUser = PageHelper.UserName; entity.UpdateDate = currentDate; entity.DeleteFlag = inputObject.DeleteFlag; EntityManager.Categories.InsertOnSubmit(entity); // Submit EntityManager.SubmitChanges(); }
partial void DeleteCategory(Category instance);
partial void UpdateCategory(Category instance);
partial void InsertCategory(Category instance);