示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCrecqevoidcriteria(ref DataRow row, Crecqevoidcriteria entity)
 {
     row.SetField("bankno", entity.bankno);
     row.SetField("checknostart", entity.checknostart);
     row.SetField("checknoend", entity.checknoend);
     row.SetField("enterdt", entity.enterdt);
     row.SetField("refer", entity.refer);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Crecqevoidcriteria BuildCrecqevoidcriteriaFromRow(DataRow row)
        {
            Crecqevoidcriteria entity = new Crecqevoidcriteria();

            entity.bankno           = row.IsNull("bankno") ? 0 : row.Field <int>("bankno");
            entity.checknostart     = row.IsNull("checknostart") ? decimal.Zero : row.Field <decimal>("checknostart");
            entity.checknoend       = row.IsNull("checknoend") ? decimal.Zero : row.Field <decimal>("checknoend");
            entity.enterdt          = row.Field <DateTime?>("enterdt");
            entity.refer            = row.IsNull("refer") ? string.Empty : row.Field <string>("refer");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.jrnlno           = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }