/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromAosystemmenuitemext(ref DataRow row, Aosystemmenuitemext entity) { row.SetField("position", entity.position); row.SetField("folderfunctionnames", entity.folderfunctionnames); row.SetField("folderlabels", entity.folderlabels); row.SetField("folderfunctiontype", entity.folderfunctiontype); row.SetField("folderviewername", entity.folderviewername); row.SetField("folderinstructions", entity.folderinstructions); row.SetField("userfield", entity.userfield); }
public static Aosystemmenuitemext BuildAosystemmenuitemextFromRow(DataRow row) { Aosystemmenuitemext entity = new Aosystemmenuitemext(); entity.position = row.IsNull("position") ? 0 : row.Field <int>("position"); entity.folderfunctionnames = row.IsNull("folderfunctionnames") ? string.Empty : row.Field <string>("folderfunctionnames"); entity.folderlabels = row.IsNull("folderlabels") ? string.Empty : row.Field <string>("folderlabels"); entity.folderfunctiontype = row.IsNull("folderfunctiontype") ? string.Empty : row.Field <string>("folderfunctiontype"); entity.folderviewername = row.IsNull("folderviewername") ? string.Empty : row.Field <string>("folderviewername"); entity.folderinstructions = row.IsNull("folderinstructions") ? string.Empty : row.Field <string>("folderinstructions"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }