Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoordercancel(ref DataRow row, Poordercancel entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("secure", entity.secure);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Poordercancel BuildPoordercancelFromRow(DataRow row)
        {
            Poordercancel entity = new Poordercancel();

            entity.pono      = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf     = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.secure    = row.IsNull("secure") ? 0 : row.Field <int>("secure");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }