Click here to Skip to main content
15,886,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to call the URL in wcf Pin
K Arunraj1-Jun-15 20:44
K Arunraj1-Jun-15 20:44 
AnswerRe: How to call the URL in wcf Pin
Dave Kreskowiak2-Jun-15 2:41
mveDave Kreskowiak2-Jun-15 2:41 
QuestionMissing parameter value Pin
Member 1172701428-May-15 22:00
Member 1172701428-May-15 22:00 
AnswerRe: Missing parameter value Pin
Simon_Whale28-May-15 23:04
Simon_Whale28-May-15 23:04 
AnswerRe: Missing parameter value Pin
Chris Quinn29-May-15 3:19
Chris Quinn29-May-15 3:19 
Questionprinting datagridview Pin
Member 1172695728-May-15 20:50
Member 1172695728-May-15 20:50 
AnswerRe: printing datagridview Pin
Richard MacCutchan28-May-15 22:12
mveRichard MacCutchan28-May-15 22:12 
QuestionI need a suggestion Pin
satc28-May-15 17:40
satc28-May-15 17:40 
Hello !
I have an application in vb.net 2013 and sql server 2008r2 and Entity Framework 6.0.
I'm trying to implement a "Event Log" feature in my application.
Actually :
I have an Event table in database that will keep all the activities (with details) that a user has done in this database from my application.
The only problem I have is this :
One of the field in the Event table is ObjectID , that is supposed to keep the id of the record that is related with that event.
But the problem is that how this Event will going to be read.
Because for example :

Event1 ... may be related with Clients table , with a record with ID=25
Event2 ... may be related with Articles tables , with a record with id 40
......

In this case , I can't use a foreign key with the field ObjectID because it need to be flexible ( related with different tables ) and I don't know if this is possible.

But also , if I keep only the id , and add another field that keep the table name , how can I read with entity framework ?

Any suggestion will be very helpful.
Thank you !

AnswerRe: I need a suggestion Pin
Eddy Vluggen29-May-15 2:19
professionalEddy Vluggen29-May-15 2:19 
GeneralRe: I need a suggestion Pin
Sascha Lefèvre29-May-15 2:38
professionalSascha Lefèvre29-May-15 2:38 
GeneralRe: I need a suggestion Pin
Eddy Vluggen29-May-15 2:47
professionalEddy Vluggen29-May-15 2:47 
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 
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 

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.