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
DIPTI SHARMA
NA
17
4.9k
Data Access using Entity framework in Windows Service
Sep 4 2018 11:42 PM
I want to create a windows service with Data Access using Entity Framework - Code first approach. Data Access should be in separate project but same solution. In DbContext file MyContext.cs this code line is throwing error.
public MyContext()
: base("MydbConn")
The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception. >> Configuration system failed to initialize .
May be because, Data Access project is not able to access connection string in App.Config file.
Reply
Answers (
1
)
Why declare interface property as an abstract?
Is it better to have multiple design pattern in one app?