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

            entity.lowDate   = row.Field <DateTime?>("low_date");
            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 UpdateRowFromInvdisclistsummary(ref DataRow row, Invdisclistsummary entity)
 {
     row.SetField("low_date", entity.lowDate);
     row.SetField("userfield", entity.userfield);
 }