Hello,
I have an entity that i am trying to generate proxy for, and using
dictionary<string,object> for mixins, and getting an error, below is
the code
Public Class TestClass
Private _Id As String
Public Overridable Property ID() As String
Get
Return _Id
End Get
Set(ByVal value As String)
_Id = value
End Set
End Property
End Class
code for generating proxy
Dim gen = New ProxyGenerator
Dim prxyOptions = New ProxyGenerationOptions() With
{.Selector = New InterceptorSelector(), .Hook = New ProxyGenerationHook
()}
prxyOptions.AddMixinInstance(New Dictionary(Of String,
Object))
Dim hh = New TestClass With {.ID = "test"}
Dim prxyhh = gen.CreateClassProxy(GetType(Household),
prxyOptions)
"Method 'get_Count' in type
'Castle.Proxies.TestClassProxyfab3a69d606b4de1b1b5900a55c3923c' from
assembly 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null' does not have an implementation."
Should I use some other overload of it ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---