Exemplo n.º 1
0
        public static Loadporetnalloccriteria BuildLoadporetnalloccriteriaFromRow(DataRow row)
        {
            Loadporetnalloccriteria entity = new Loadporetnalloccriteria();

            entity.pono   = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf  = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLoadporetnalloccriteria(ref DataRow row, Loadporetnalloccriteria entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("lineno", entity.lineno);
 }