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

            entity.holdoverfl = row.Field <bool>("holdoverfl");
            entity.holdintlfl = row.Field <bool>("holdintlfl");
            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 UpdateRowFromOeirinitialize(ref DataRow row, Oeirinitialize entity)
 {
     row.SetField("holdoverfl", entity.holdoverfl);
     row.SetField("holdintlfl", entity.holdintlfl);
     row.SetField("userfield", entity.userfield);
 }