Пример #1
0
      /// <summary>
      /// Update a database row from a class
      /// </summary>
      public static void UpdateRowFromPtxsrpcatcriteria(ref DataRow row, Ptxsrpcatcriteria entity)
      {
         row.SetField("prodcat", entity.prodcat);
         row.SetField("recordcountlimit", entity.recordcountlimit);
         row.SetField("userfield", entity.userfield);

      }
Пример #2
0
 public static Ptxsrpcatcriteria BuildPtxsrpcatcriteriaFromRow(DataRow row)
 {
    Ptxsrpcatcriteria entity = new Ptxsrpcatcriteria();
    entity.prodcat = row.IsNull("prodcat") ? string.Empty : row.Field<string>("prodcat");
    entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field<int>("recordcountlimit");
    entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field<string>("userfield");
    return entity;
 }