示例#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);
        }
示例#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);
 }