Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtheaderretrievecriteria(ref DataRow row, Wtheaderretrievecriteria entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("maintmode", entity.maintmode);
     row.SetField("updatetype", entity.updatetype);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Wtheaderretrievecriteria BuildWtheaderretrievecriteriaFromRow(DataRow row)
        {
            Wtheaderretrievecriteria entity = new Wtheaderretrievecriteria();

            entity.wtno       = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf      = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.maintmode  = row.Field <bool>("maintmode");
            entity.updatetype = row.IsNull("updatetype") ? string.Empty : row.Field <string>("updatetype");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }