Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSllinecdlookupcriteria(ref DataRow row, Sllinecdlookupcriteria entity)
 {
     row.SetField("imptype", entity.imptype);
     row.SetField("vendcd", entity.vendcd);
     row.SetField("linecd", entity.linecd);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Sllinecdlookupcriteria BuildSllinecdlookupcriteriaFromRow(DataRow row)
        {
            Sllinecdlookupcriteria entity = new Sllinecdlookupcriteria();

            entity.imptype   = row.IsNull("imptype") ? string.Empty : row.Field <string>("imptype");
            entity.vendcd    = row.IsNull("vendcd") ? string.Empty : row.Field <string>("vendcd");
            entity.linecd    = row.IsNull("linecd") ? string.Empty : row.Field <string>("linecd");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }