This question is locked. New answers and comments are not allowed.
Hi,
i am currently trying to implement a dynamic select through linq by passing a specific setting name.
My intention is to get a value of a dynamic specified column name.
A first try is this here...
But my question is how can i access MyValue?
i am currently trying to implement a dynamic select through linq by passing a specific setting name.
My intention is to get a value of a dynamic specified column name.
A first try is this here...
sSettingname = "XMLLayout"
Dim
objScope
As
IObjectScope = ObjectScopeProviderMC.GetNewObjectScope()
Dim
sUsername
As
String
= System.Environment.UserName
Dim
Settings = (From Sets
In
objScope.Extent(Of EnvSettings)() _
Where Sets.User = sUsername.ToLower _
Select
(
"new("
& sSettingname &
" AS MyValue)"
))
But my question is how can i access MyValue?