Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAreceinvoicesoldestcriteria(ref DataRow row, Areceinvoicesoldestcriteria entity)
 {
     row.SetField("invtype", entity.invtype);
     row.SetField("disctype", entity.disctype);
     row.SetField("disputed", entity.disputed);
     row.SetField("creditsoninvscreen", entity.creditsoninvscreen);
     row.SetField("includecredits", entity.includecredits);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Areceinvoicesoldestcriteria BuildAreceinvoicesoldestcriteriaFromRow(DataRow row)
        {
            Areceinvoicesoldestcriteria entity = new Areceinvoicesoldestcriteria();

            entity.invtype            = row.IsNull("invtype") ? string.Empty : row.Field <string>("invtype");
            entity.disctype           = row.IsNull("disctype") ? string.Empty : row.Field <string>("disctype");
            entity.disputed           = row.Field <bool>("disputed");
            entity.creditsoninvscreen = row.Field <bool>("creditsoninvscreen");
            entity.includecredits     = row.Field <bool>("includecredits");
            entity.userfield          = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }