public string Data( Context context, SiteSettings ss, GroupModel groupModel) { var column = ss.GetColumn( context: context, columnName: From); if (column?.CanRead( context: context, ss: ss, mine: groupModel.Mine(context: context)) == true) { switch (column.ColumnName) { case "TenantId": return(groupModel.TenantId.ToLookup( context: context, ss: ss, column: column, type: Type)); case "GroupId": return(groupModel.GroupId.ToLookup( context: context, ss: ss, column: column, type: Type)); case "Ver": return(groupModel.Ver.ToLookup( context: context, ss: ss, column: column, type: Type)); case "GroupName": return(groupModel.GroupName.ToLookup( context: context, ss: ss, column: column, type: Type)); case "Body": return(groupModel.Body.ToLookup( context: context, ss: ss, column: column, type: Type)); case "Title": return(groupModel.Title.ToLookup( context: context, ss: ss, column: column, type: Type)); case "Disabled": return(groupModel.Disabled.ToLookup( context: context, ss: ss, column: column, type: Type)); case "Comments": return(groupModel.Comments.ToLookup( context: context, ss: ss, column: column, type: Type)); case "Creator": return(groupModel.Creator.ToLookup( context: context, ss: ss, column: column, type: Type)); case "Updator": return(groupModel.Updator.ToLookup( context: context, ss: ss, column: column, type: Type)); case "CreatedTime": return(groupModel.CreatedTime.ToLookup( context: context, ss: ss, column: column, type: Type)); case "UpdatedTime": return(groupModel.UpdatedTime.ToLookup( context: context, ss: ss, column: column, type: Type)); case "VerUp": return(groupModel.VerUp.ToLookup( context: context, ss: ss, column: column, type: Type)); case "Timestamp": return(groupModel.Timestamp.ToLookup( context: context, ss: ss, column: column, type: Type)); default: switch (Def.ExtendedColumnTypes.Get(column.Name)) { case "Class": return(groupModel.GetClass(column: column).ToLookup( context: context, ss: ss, column: column, type: Type)); case "Num": return(groupModel.GetNum(column: column).ToLookup( context: context, ss: ss, column: column, type: Type)); case "Date": return(groupModel.GetDate(column: column).ToLookup( context: context, ss: ss, column: column, type: Type)); case "Description": return(groupModel.GetDescription(column: column).ToLookup( context: context, ss: ss, column: column, type: Type)); case "Check": return(groupModel.GetCheck(column: column).ToLookup( context: context, ss: ss, column: column, type: Type)); case "Attachments": return(groupModel.GetAttachments(column: column).ToLookup( context: context, ss: ss, column: column, type: Type)); default: return(string.Empty); } } } return(string.Empty); }