This project is read-only.
Inserting is quite easy. Just create a new instance of a DAO, fill it with values (at least the required ones) and save:

        public void InsertTerritories()
        {
            Territories t = new Territories();
            t.Territoryid = "32301";
            t.Territorydescription = "Tallahassee";
            t.Regionid = 1; 
            int rowsAffected = D2Bk.SaveOne(t);
        }


Here's the generated SQL statement:

INSERT INTO [Territories] (Territoryid, Territorydescription, Regionid )  VALUES (  @Territoryid ,  @Territorydescription ,  @Regionid  )

Last edited Mar 4, 2009 at 12:40 AM by dbroker, version 1

Comments

No comments yet.