Click here to Skip to main content
15,910,083 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: The shortest way to do this ? Pin
Mycroft Holmes2-Jun-15 20:38
professionalMycroft Holmes2-Jun-15 20:38 
GeneralRe: The shortest way to do this ? Pin
PIEBALDconsult3-Jun-15 12:39
mvePIEBALDconsult3-Jun-15 12:39 
GeneralRe: The shortest way to do this ? Pin
Richard Deeming2-Jun-15 22:11
mveRichard Deeming2-Jun-15 22:11 
GeneralRe: The shortest way to do this ? Pin
satc2-Jun-15 23:35
satc2-Jun-15 23:35 
GeneralRe: The shortest way to do this ? Pin
Richard Deeming3-Jun-15 0:20
mveRichard Deeming3-Jun-15 0:20 
QuestionI can't solve following coding~~~ Pin
Wathon Aung2-Jun-15 1:24
Wathon Aung2-Jun-15 1:24 
AnswerRe: I can't solve following coding~~~ Pin
Chris Quinn2-Jun-15 2:24
Chris Quinn2-Jun-15 2:24 
GeneralRe: I can't solve following coding~~~ Pin
Wathon Aung2-Jun-15 21:32
Wathon Aung2-Jun-15 21:32 
GeneralRe: I can't solve following coding~~~ Pin
Richard MacCutchan2-Jun-15 21:34
mveRichard MacCutchan2-Jun-15 21:34 
AnswerRe: I can't solve following coding~~~ Pin
Dave Kreskowiak2-Jun-15 4:32
mveDave Kreskowiak2-Jun-15 4:32 
GeneralRe: I can't solve following coding~~~ Pin
Wathon Aung8-Jul-15 23:34
Wathon Aung8-Jul-15 23:34 
SuggestionRe: I can't solve following coding~~~ Pin
Richard Deeming2-Jun-15 21:54
mveRichard Deeming2-Jun-15 21:54 
QuestionChange Color of VSFlex Grid's Scroll Bar Pin
Mi Khayae Thin1-Jun-15 22:41
Mi Khayae Thin1-Jun-15 22:41 
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 

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.