Exemple #1
0
        public static Crbankglfetchcriteria BuildCrbankglfetchcriteriaFromRow(DataRow row)
        {
            Crbankglfetchcriteria entity = new Crbankglfetchcriteria();

            entity.bankno    = row.IsNull("bankno") ? 0 : row.Field <int>("bankno");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCrbankglfetchcriteria(ref DataRow row, Crbankglfetchcriteria entity)
 {
     row.SetField("bankno", entity.bankno);
     row.SetField("userfield", entity.userfield);
 }