Click here to Skip to main content
15,889,176 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
satc11-Aug-15 10:06
satc11-Aug-15 10:06 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
Richard Deeming11-Aug-15 10:37
mveRichard Deeming11-Aug-15 10:37 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
satc11-Aug-15 11:42
satc11-Aug-15 11:42 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
Richard Deeming13-Aug-15 1:35
mveRichard Deeming13-Aug-15 1:35 
QuestionUpdate data in Report View control on a form Pin
Member 1129477510-Aug-15 11:27
Member 1129477510-Aug-15 11:27 
AnswerRe: Update data in Report View control on a form Pin
Richard Deeming11-Aug-15 4:25
mveRichard Deeming11-Aug-15 4:25 
GeneralRe: Update data in Report View control on a form Pin
Member 1129477511-Aug-15 4:49
Member 1129477511-Aug-15 4:49 
QuestionEntity Framework : Get original Values for each object's property Pin
satc10-Aug-15 3:42
satc10-Aug-15 3:42 
I'm using Entity Framework 6 and vb.net 2013 and DBContext.

I have a case when i use reflection to return for an object ( of whatever entity ) , property names and current values :

Dim values = obj.GetType.GetProperties.Where(Function(t2) t2.PropertyType.IsValueType).Select((Function(t3) New With { _
        .property = t3.Name, _
        .value = t3.GetValue(obj, Nothing) _
    })).ToDictionary(Function(x) x.property, Function(y) y.value)

This code is working without problems , but instead of current values that this expression return ( on .value=...) , I need to get the original values for each property.

What changes should I make on my expression ?

Thank you !
AnswerRe: Entity Framework : Get original Values for each object's property Pin
Eddy Vluggen10-Aug-15 5:29
professionalEddy Vluggen10-Aug-15 5:29 
GeneralRe: Entity Framework : Get original Values for each object's property Pin
satc10-Aug-15 5:47
satc10-Aug-15 5:47 
GeneralRe: Entity Framework : Get original Values for each object's property Pin
Eddy Vluggen10-Aug-15 5:53
professionalEddy Vluggen10-Aug-15 5:53 
AnswerRe: Entity Framework : Get original Values for each object's property Pin
Richard Deeming10-Aug-15 5:38
mveRichard Deeming10-Aug-15 5:38 
GeneralRe: Entity Framework : Get original Values for each object's property Pin
satc10-Aug-15 5:47
satc10-Aug-15 5:47 
GeneralRe: Entity Framework : Get original Values for each object's property Pin
Richard Deeming10-Aug-15 5:54
mveRichard Deeming10-Aug-15 5:54 
GeneralRe: Entity Framework : Get original Values for each object's property Pin
Eddy Vluggen10-Aug-15 5:51
professionalEddy Vluggen10-Aug-15 5:51 
GeneralRe: Entity Framework : Get original Values for each object's property Pin
Richard Deeming10-Aug-15 5:56
mveRichard Deeming10-Aug-15 5:56 
GeneralRe: Entity Framework : Get original Values for each object's property Pin
satc10-Aug-15 6:10
satc10-Aug-15 6:10 
GeneralRe: Entity Framework : Get original Values for each object's property Pin
Richard Deeming10-Aug-15 6:17
mveRichard Deeming10-Aug-15 6:17 
Questionvb coding Pin
Member 118868934-Aug-15 21:48
Member 118868934-Aug-15 21:48 
AnswerRe: vb coding Pin
Richard MacCutchan4-Aug-15 22:21
mveRichard MacCutchan4-Aug-15 22:21 
QuestionSQL Linq, Sum of multiple columns Pin
jkirkerx4-Aug-15 7:23
professionaljkirkerx4-Aug-15 7:23 
AnswerRe: SQL Linq, Sum of multiple columns Pin
jkirkerx4-Aug-15 8:20
professionaljkirkerx4-Aug-15 8:20 
Questionsql server 2008 how to pivot Login and logOut Pin
Member 118832203-Aug-15 14:26
Member 118832203-Aug-15 14:26 
AnswerRe: sql server 2008 how to pivot Login and logOut Pin
Mycroft Holmes3-Aug-15 14:38
professionalMycroft Holmes3-Aug-15 14:38 
GeneralRe: sql server 2008 how to pivot Login and logOut Pin
Member 118832203-Aug-15 15:05
Member 118832203-Aug-15 15:05 

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.