Exemplo n.º 1
0
        public static Crbankclearchkrun BuildCrbankclearchkrunFromRow(DataRow row)
        {
            Crbankclearchkrun entity = new Crbankclearchkrun();

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