/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSasosetupfuncsecsubfunc(ref DataRow row, Sasosetupfuncsecsubfunc entity) { row.SetField("seqno", entity.seqno); row.SetField("subfunctionname", entity.subfunctionname); row.SetField("subfunctionsecurity", entity.subfunctionsecurity); row.SetField("userfield", entity.userfield); }
public static Sasosetupfuncsecsubfunc BuildSasosetupfuncsecsubfuncFromRow(DataRow row) { Sasosetupfuncsecsubfunc entity = new Sasosetupfuncsecsubfunc(); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.subfunctionname = row.IsNull("subfunctionname") ? string.Empty : row.Field <string>("subfunctionname"); entity.subfunctionsecurity = row.IsNull("subfunctionsecurity") ? 0 : row.Field <int>("subfunctionsecurity"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }