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

            entity.fiStartDtValue = row.Field <DateTime?>("fiStartDt-Value");
            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 UpdateRowFromPdemexcelimportnewinit(ref DataRow row, Pdemexcelimportnewinit entity)
 {
     row.SetField("fiStartDt-Value", entity.fiStartDtValue);
     row.SetField("userfield", entity.userfield);
 }