Beispiel #1
0
        public static AvailUsers BuildAvailUsersFromRow(DataRow row)
        {
            AvailUsers entity = new AvailUsers();

            entity.availcono = row.IsNull("availcono") ? 0 : row.Field <int>("availcono");
            entity.availuser = row.IsNull("availuser") ? string.Empty : row.Field <string>("availuser");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAvailUsers(ref DataRow row, AvailUsers entity)
 {
     row.SetField("availcono", entity.availcono);
     row.SetField("availuser", entity.availuser);
 }