示例#1
0
        public void Update( Movie movie )
        {
            using ( MovieIndexContext context = new MovieIndexContext( ) )
            {
                context.Entry( movie ).State = EntityState.Modified;

                context.SaveChanges( );
            }
        }
示例#2
0
        public void Update(Movie movie)
        {
            using (MovieIndexContext context = new MovieIndexContext( ))
            {
                context.Entry(movie).State = EntityState.Modified;

                context.SaveChanges( );
            }
        }