Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaegoperresults(ref DataRow row, Saegoperresults entity)
 {
     row.SetField("oper", entity.oper);
     row.SetField("name", entity.name);
     row.SetField("dept", entity.dept);
     row.SetField("grouplist", entity.grouplist);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Saegoperresults BuildSaegoperresultsFromRow(DataRow row)
        {
            Saegoperresults entity = new Saegoperresults();

            entity.oper      = row.IsNull("oper") ? string.Empty : row.Field <string>("oper");
            entity.name      = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.dept      = row.IsNull("dept") ? string.Empty : row.Field <string>("dept");
            entity.grouplist = row.IsNull("grouplist") ? string.Empty : row.Field <string>("grouplist");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }