예제 #1
0
      /// <summary>
      /// Update a database row from a class
      /// </summary>
      public static void UpdateRowFromLoadpolinesettings(ref DataRow row, Loadpolinesettings entity)
      {
         row.SetField("lICSNPOFl", entity.lICSNPOFl);
         row.SetField("cICLotRcptTy", entity.cICLotRcptTy);
         row.SetField("lNonStockEntry", entity.lNonStockEntry);
         row.SetField("lResaleEntry", entity.lResaleEntry);
         row.SetField("cDefaultNonStockTy", entity.cDefaultNonStockTy);
         row.SetField("cICNSProdCat", entity.cICNSProdCat);
         row.SetField("lSeeCostFl", entity.lSeeCostFl);
         row.SetField("userfield", entity.userfield);

      }
예제 #2
0
 public static Loadpolinesettings BuildLoadpolinesettingsFromRow(DataRow row)
 {
    Loadpolinesettings entity = new Loadpolinesettings();
    entity.lICSNPOFl = row.Field<bool>("lICSNPOFl");
    entity.cICLotRcptTy = row.IsNull("cICLotRcptTy") ? string.Empty : row.Field<string>("cICLotRcptTy");
    entity.lNonStockEntry = row.Field<bool>("lNonStockEntry");
    entity.lResaleEntry = row.Field<bool>("lResaleEntry");
    entity.cDefaultNonStockTy = row.IsNull("cDefaultNonStockTy") ? string.Empty : row.Field<string>("cDefaultNonStockTy");
    entity.cICNSProdCat = row.IsNull("cICNSProdCat") ? string.Empty : row.Field<string>("cICNSProdCat");
    entity.lSeeCostFl = row.Field<bool>("lSeeCostFl");
    entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field<string>("userfield");
    return entity;
 }