コード例 #1
0
 public static T_Role ToModel(this T_RoleModel node)
 {
     return(new T_Role()
     {
         Id = node.Id,
         Name = node.Name,
         AccessKey = node.AccessKey,
     });
 }
コード例 #2
0
        public static T_RoleModel DTO(this T_Role node)
        {
            if (node == null)
            {
                return(null);
            }
            var model = new T_RoleModel()
            {
                Id        = node.Id,
                Name      = node.Name,
                AccessKey = node.AccessKey,
            };

            return(model);
        }
コード例 #3
0
ファイル: T_RoleBLL.cs プロジェクト: luyangjia/public_erp
 public DataGrid <T_RoleModel> Search(T_RoleModel model, Dictionary <string, string> Orders = null, int PageSize = 15, int PageIndex = 100)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
ファイル: T_RoleBLL.cs プロジェクト: luyangjia/public_erp
 public int DeleteData(T_RoleModel model)
 {
     return(this.Delete(model.Id));
 }
コード例 #5
0
ファイル: T_RoleBLL.cs プロジェクト: luyangjia/public_erp
 public int EditData(T_RoleModel model)
 {
     return(this.Edit(model.ToModel()));
 }
コード例 #6
0
ファイル: T_RoleBLL.cs プロジェクト: luyangjia/public_erp
 public int AddData(T_RoleModel model)
 {
     return(this.Add(model.ToModel()));
 }