public static Loadpoapdetailcriteria BuildLoadpoapdetailcriteriaFromRow(DataRow row) { Loadpoapdetailcriteria entity = new Loadpoapdetailcriteria(); entity.pono = row.IsNull("pono") ? 0 : row.Field <int>("pono"); entity.posuf = row.IsNull("posuf") ? 0 : row.Field <int>("posuf"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadpoapdetailcriteria(ref DataRow row, Loadpoapdetailcriteria entity) { row.SetField("pono", entity.pono); row.SetField("posuf", entity.posuf); }