예제 #1
0
        public static Syspadate BuildSyspadateFromRow(DataRow row)
        {
            Syspadate entity = new Syspadate();

            entity.parameterDate = row.Field <DateTime?>("parameter_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 UpdateRowFromSyspadate(ref DataRow row, Syspadate entity)
 {
     row.SetField("parameter_date", entity.parameterDate);
     row.SetField("userfield", entity.userfield);
 }