Click here to Skip to main content
15,032,755 members
Home / Discussions / Database
   

Database

 
AnswerRe: database log file configuration.. Pin
Eddy Vluggen23-Nov-17 1:35
professionalEddy Vluggen23-Nov-17 1:35 
GeneralRe: database log file configuration.. Pin
Member 1353603027-Nov-17 7:11
MemberMember 1353603027-Nov-17 7:11 
GeneralRe: database log file configuration.. Pin
Eddy Vluggen27-Nov-17 7:55
professionalEddy Vluggen27-Nov-17 7:55 
GeneralRe: database log file configuration.. Pin
Member 1353603027-Nov-17 8:12
MemberMember 1353603027-Nov-17 8:12 
GeneralRe: database log file configuration.. Pin
Eddy Vluggen27-Nov-17 9:54
professionalEddy Vluggen27-Nov-17 9:54 
AnswerRe: database log file configuration.. Pin
jschell27-Nov-17 10:10
Memberjschell27-Nov-17 10:10 
QuestionEntity Framework VS Linq To SQL Pin
Kevin Marois15-Nov-17 12:29
professionalKevin Marois15-Nov-17 12:29 
AnswerRe: Entity Framework VS Linq To SQL Pin
Richard Deeming28-Nov-17 7:17
mveRichard Deeming28-Nov-17 7:17 
Use the "Code First" approach, even if you're connecting to an existing database. That way, you can put your entities wherever you like, so long as the DAL project has a reference to them.

If you're using an existing database, there's even a wizard to create the code first classes for you, which you can then move to another project as required:
Entity Framework Code First to an Existing Database[^]

The BL layer might be able to reuse the EF entity classes. But you'll probably find that you need to make changes to the layout, particularly when dealing with navigation properties. In that case, you'll want a parallel set of DTO classes, and something like AutoMapper[^] to map data between them.

The UI layer will probably need its own parallel set of view-model classes, with UI-specific validation, property change handlers for WPF, etc.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


AnswerRe: Entity Framework VS Linq To SQL Pin
Nathan Minier28-Nov-17 8:58
professionalNathan Minier28-Nov-17 8:58 
QuestionChange old store to new store Pin
Member 1333807514-Nov-17 18:13
MemberMember 1333807514-Nov-17 18:13 
AnswerRe: Change old store to new store Pin
Richard Deeming15-Nov-17 2:47
mveRichard Deeming15-Nov-17 2:47 
AnswerRe: Change old store to new store Pin
CHill6015-Nov-17 10:23
mveCHill6015-Nov-17 10:23 
QuestionSSIS throwing error as: Did not read byte array properly Pin
indian1438-Nov-17 8:14
Memberindian1438-Nov-17 8:14 
AnswerRe: SSIS throwing error as: Did not read byte array properly Pin
CHill6011-Nov-17 3:38
mveCHill6011-Nov-17 3:38 
GeneralRe: SSIS throwing error as: Did not read byte array properly Pin
indian14312-Nov-17 20:24
Memberindian14312-Nov-17 20:24 
AnswerRe: SSIS throwing error as: Did not read byte array properly Pin
jschell15-Nov-17 7:52
Memberjschell15-Nov-17 7:52 
QuestionManaging Database Changes Pin
Kevin Marois8-Nov-17 5:04
professionalKevin Marois8-Nov-17 5:04 
AnswerRe: Managing Database Changes Pin
David Mujica8-Nov-17 5:53
MemberDavid Mujica8-Nov-17 5:53 
AnswerRe: Managing Database Changes Pin
jschell8-Nov-17 7:33
Memberjschell8-Nov-17 7:33 
AnswerRe: Managing Database Changes Pin
Mycroft Holmes8-Nov-17 14:10
professionalMycroft Holmes8-Nov-17 14:10 
AnswerRe: Managing Database Changes Pin
kmoorevs11-Nov-17 9:58
Memberkmoorevs11-Nov-17 9:58 
GeneralRe: Managing Database Changes Pin
Richard Deeming13-Nov-17 1:49
mveRichard Deeming13-Nov-17 1:49 
GeneralRe: Managing Database Changes Pin
kmoorevs13-Nov-17 8:29
Memberkmoorevs13-Nov-17 8:29 
QuestionGet specific records from DB Pin
_Flaviu28-Oct-17 23:08
Member_Flaviu28-Oct-17 23:08 
AnswerRe: Get specific records from DB Pin
A_Griffin28-Oct-17 23:48
MemberA_Griffin28-Oct-17 23:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.