Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPolineinitializecriteria(ref DataRow row, Polineinitializecriteria entity)
 {
     row.SetField("maintmode", entity.maintmode);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("processtype", entity.processtype);
     row.SetField("secure", entity.secure);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Polineinitializecriteria BuildPolineinitializecriteriaFromRow(DataRow row)
        {
            Polineinitializecriteria entity = new Polineinitializecriteria();

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