コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCrbanklookupcriteria(ref DataRow row, Crbanklookupcriteria entity)
 {
     row.SetField("bankno", entity.bankno);
     row.SetField("statustypecd", entity.statustypecd);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Crbanklookupcriteria BuildCrbanklookupcriteriaFromRow(DataRow row)
        {
            Crbanklookupcriteria entity = new Crbanklookupcriteria();

            entity.bankno           = row.IsNull("bankno") ? 0 : row.Field <int>("bankno");
            entity.statustypecd     = row.IsNull("statustypecd") ? string.Empty : row.Field <string>("statustypecd");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }