TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhilash J A
536
2.4k
596.2k
error: Namespace name 'EntityState' does not exist
Sep 2 2016 3:37 AM
Hello,
I have a error:
The type or namespace name 'EntityState' does not exist in the namespace 'System.Data.Entity'
But, I have added reference System.Data. Kindly answer me.
using DAL.Model;
using System;
using System.Collections.Generic;
//using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
namespace DMS.GenericRepository
{
public class GenericRepository<TEntity> where TEntity : class
{
internal DbSet<TEntity> dbSet;
public virtual void Update(TEntity entityToUpdate)
{
dbSet.Attach(entityToUpdate);
context.Entry(entityToUpdate).State = System.Data.Entity.EntityState.Modified;
}
}
}
Thanks Advance.
Reply
Answers (
1
)
NSIS import PowerShell script with parameters
Interfaces with Libraries