Click here to Skip to main content
15,902,903 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: I need a suggestion Pin
Sascha Lefèvre29-May-15 2:59
professionalSascha Lefèvre29-May-15 2:59 
GeneralRe: I need a suggestion Pin
Eddy Vluggen29-May-15 3:06
professionalEddy Vluggen29-May-15 3:06 
GeneralRe: I need a suggestion Pin
Sascha Lefèvre29-May-15 3:23
professionalSascha Lefèvre29-May-15 3:23 
GeneralRe: I need a suggestion Pin
satc29-May-15 8:57
satc29-May-15 8:57 
GeneralRe: I need a suggestion Pin
Dave Kreskowiak29-May-15 9:55
mveDave Kreskowiak29-May-15 9:55 
GeneralRe: I need a suggestion Pin
Sascha Lefèvre29-May-15 12:45
professionalSascha Lefèvre29-May-15 12:45 
GeneralRe: I need a suggestion Pin
satc29-May-15 23:03
satc29-May-15 23:03 
GeneralRe: I need a suggestion Pin
Sascha Lefèvre31-May-15 4:57
professionalSascha Lefèvre31-May-15 4:57 
Did you see my addition to my previous message? If you create an abstract Event-base-entity and derive concrete Event-entities for the "regular" tables from that, you can query all events, regardless to which table they belong.

The abstract Event-base-entity would hold all the information about the event, the derived concrete Event-entities only a reference to the record to which the event refers.

Query-examples:
C#
// querying events on a certain day regardless of specific type
DateTime dayOfInterest = new DateTime(2015, 1, 1);
var events = context.Events.Where(e => e.Date == dayOfInterest);


// querying events of a specific type
var allUserEvents = context.Events.OfType<UserEvent>();


Whether the concrete Event-entities end up in separate tables or in one table depends on which type of inheritance-mapping strategy you choose: Table per hierarchy (a single table for all events) or one of the other two (see http://weblogs.asp.net/manavi/inheritance-mapping-strategies-with-entity-framework-code-first-ctp5-part-1-table-per-hierarchy-tph[^]).

Regarding the creation of a report I have to completely pass.. but I can't imagine that the above idea would be a general problem for report creation.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

Questionsearch in datagridview Pin
Member 1171143728-May-15 3:21
Member 1171143728-May-15 3:21 
AnswerRe: search in datagridview Pin
Eddy Vluggen29-May-15 2:24
professionalEddy Vluggen29-May-15 2:24 
QuestionCan we have same story name in a MOS rundown.runorder Pin
Ankush Seth27-May-15 19:48
Ankush Seth27-May-15 19:48 
QuestionCreating B2B using AS2 protocol Pin
Kamel J27-May-15 3:28
Kamel J27-May-15 3:28 
AnswerRe: Creating B2B using AS2 protocol Pin
Mycroft Holmes27-May-15 13:04
professionalMycroft Holmes27-May-15 13:04 
QuestionCompress a file with password ? Pin
satc26-May-15 10:09
satc26-May-15 10:09 
AnswerRe: Compress a file with password ? Pin
Dave Kreskowiak26-May-15 10:25
mveDave Kreskowiak26-May-15 10:25 
GeneralRe: Compress a file with password ? Pin
satc26-May-15 11:54
satc26-May-15 11:54 
GeneralRe: Compress a file with password ? Pin
Dave Kreskowiak26-May-15 12:23
mveDave Kreskowiak26-May-15 12:23 
QuestionAre there Resources for creating VBA/VB6 IDE Panes to Jump to Module Code Pin
LukeVA26-May-15 6:20
LukeVA26-May-15 6:20 
AnswerRe: Are there Resources for creating VBA/VB6 IDE Panes to Jump to Module Code Pin
Dave Kreskowiak26-May-15 9:24
mveDave Kreskowiak26-May-15 9:24 
QuestionDetect a Word or Excel file regardless of extension Pin
satc25-May-15 23:27
satc25-May-15 23:27 
AnswerRe: Detect a Word or Excel file regardless of extension Pin
Richard MacCutchan26-May-15 3:12
mveRichard MacCutchan26-May-15 3:12 
AnswerRe: Detect a Word or Excel file regardless of extension Pin
Dave Kreskowiak26-May-15 3:16
mveDave Kreskowiak26-May-15 3:16 
AnswerRe: Detect a Word or Excel file regardless of extension Pin
Sascha Lefèvre26-May-15 3:24
professionalSascha Lefèvre26-May-15 3:24 
GeneralRe: Detect a Word or Excel file regardless of extension Pin
satc26-May-15 22:13
satc26-May-15 22:13 
GeneralRe: Detect a Word or Excel file regardless of extension Pin
Sascha Lefèvre27-May-15 3:19
professionalSascha Lefèvre27-May-15 3:19 

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.