예제 #1
0
        public static Saegopercriteria BuildSaegopercriteriaFromRow(DataRow row)
        {
            Saegopercriteria entity = new Saegopercriteria();

            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.groupnm   = row.IsNull("groupnm") ? string.Empty : row.Field <string>("groupnm");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
예제 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaegopercriteria(ref DataRow row, Saegopercriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("groupnm", entity.groupnm);
     row.SetField("userfield", entity.userfield);
 }