Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSledgetprodlistcriteria(ref DataRow row, Sledgetprodlistcriteria entity)
 {
     row.SetField("cImptype", entity.cImptype);
     row.SetField("lStatusType", entity.lStatusType);
     row.SetField("cSLUpdtNo", entity.cSLUpdtNo);
     row.SetField("recordlimit", entity.recordlimit);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Sledgetprodlistcriteria BuildSledgetprodlistcriteriaFromRow(DataRow row)
        {
            Sledgetprodlistcriteria entity = new Sledgetprodlistcriteria();

            entity.cImptype    = row.IsNull("cImptype") ? string.Empty : row.Field <string>("cImptype");
            entity.lStatusType = row.Field <bool>("lStatusType");
            entity.cSLUpdtNo   = row.IsNull("cSLUpdtNo") ? string.Empty : row.Field <string>("cSLUpdtNo");
            entity.recordlimit = row.IsNull("recordlimit") ? 0 : row.Field <int>("recordlimit");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }