0
wddpct created
When I create an repository like 'Repository', I can't use those methods such as 'AddRange' or others. Here is my code
public class TaskRepository: BrightEyesProjectRepositoryBase<Task,long>, ITaskRepository { public TaskRepository(IDbContextProvider<BrightEyesProjectDbContext> dbContextProvider) : base(dbContextProvider) { }
public OperationResult InsertTaskList(List<Task> tasks)
{
var operationResult = new OperationResult(OperationResultType.Success);
**var data = Context.Tasks.AddRange(tasks);**// there is a mistake about 'AddRange'.IDbSet<Task> Not included in the definition of 'AddRange'.
throw new NotImplementedException();
}
}
Could you fix it, thank you...