Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdeminitialloadcriteria(ref DataRow row, Pdeminitialloadcriteria entity)
 {
     row.SetField("cSetid", entity.cSetid);
     row.SetField("cDeletefl", entity.cDeletefl);
     row.SetField("cCancelfl", entity.cCancelfl);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Pdeminitialloadcriteria BuildPdeminitialloadcriteriaFromRow(DataRow row)
        {
            Pdeminitialloadcriteria entity = new Pdeminitialloadcriteria();

            entity.cSetid    = row.IsNull("cSetid") ? string.Empty : row.Field <string>("cSetid");
            entity.cDeletefl = row.IsNull("cDeletefl") ? string.Empty : row.Field <string>("cDeletefl");
            entity.cCancelfl = row.IsNull("cCancelfl") ? string.Empty : row.Field <string>("cCancelfl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }