Esempio n. 1
0
        public void InsertTeam(TeamModel team)
        {
            team.IDTeam = Guid.NewGuid();   //generate new id
            //  dbContext.Teams.InsertOnSubmit(MapModelToDbObject(teamModel));


            dbContext.Teams.InsertOnSubmit(team.MapObject <Models.DBObjects.Team>());


            //add to ORM layer
            dbContext.SubmitChanges();   //commit to db
        }