コード例 #1
0
        public static Poblanketreleasecriteria BuildPoblanketreleasecriteriaFromRow(DataRow row)
        {
            Poblanketreleasecriteria entity = new Poblanketreleasecriteria();

            entity.pono        = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf       = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            return(entity);
        }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoblanketreleasecriteria(ref DataRow row, Poblanketreleasecriteria entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("customparam", entity.customparam);
 }