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

            entity.vendno    = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            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 UpdateRowFromSasttpdst(ref DataRow row, Sasttpdst entity)
 {
     row.SetField("vendno", entity.vendno);
     row.SetField("userfield", entity.userfield);
 }