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

            entity.iMediaCd     = row.IsNull("iMediaCd") ? 0 : row.Field <int>("iMediaCd");
            entity.cMediaCdDesc = row.IsNull("cMediaCdDesc") ? string.Empty : row.Field <string>("cMediaCdDesc");
            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 UpdateRowFromPaymenttypes(ref DataRow row, Paymenttypes entity)
 {
     row.SetField("iMediaCd", entity.iMediaCd);
     row.SetField("cMediaCdDesc", entity.cMediaCdDesc);
     row.SetField("userfield", entity.userfield);
 }