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

            entity.imptype   = row.IsNull("imptype") ? string.Empty : row.Field <string>("imptype");
            entity.vendcd    = row.IsNull("vendcd") ? string.Empty : row.Field <string>("vendcd");
            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 UpdateRowFromSlvendcdlookupcriteria(ref DataRow row, Slvendcdlookupcriteria entity)
 {
     row.SetField("imptype", entity.imptype);
     row.SetField("vendcd", entity.vendcd);
     row.SetField("userfield", entity.userfield);
 }