linfu-dynamicproxy

Backing field for collection is null when using LinFu ProxyFactoryFactory in NHibernate

十年热恋 提交于 2019-12-10 23:40:11
问题 I am having a problem when I try switching from the Castle ProxyFactoryFactory to the LinFu ProxyFactoryFactory in NHibernate. I have an entity like this: public class Foo { private ISet<Bar> _bars = new HashedSet<Bar>(); public virtual void AddBar(Bar bar) { if (!_bars.Contains(bar) _bars.Add(bar); bar.Foo = this; } } This is mapped with Fluent NHibernate like this: public class FooDbMap : ClassMap<Foo> { public FooDbMap() { HasMany(x => x.Bars) .Access.CamelCaseField(Prefix.Underscore)

NHibernate.ByteCode.LinFu.dll For NHibernate 3.2

左心房为你撑大大i 提交于 2019-12-04 16:39:17
问题 Where can I find the latest version of NHibernate.ByteCode.LinFu.dll that is compiled against NHibernate 3.2? 回答1: From 3.2, NHibernate ha its own embedded proxy generator: there are nо more need of NHibernate.ByteCode.LinFu.dll or NHibernate.ByteCode.Castle.dll and I don't think they are supported any more. I think you have to download the last supported source of NHibernate.ByteCode.LinFu.dll source, and try to compile it against the 3.2. 回答2: in NHibernate 3.2 you do not need NHibernate

NHibernate.ByteCode.LinFu.dll For NHibernate 3.2

陌路散爱 提交于 2019-12-03 10:47:01
Where can I find the latest version of NHibernate.ByteCode.LinFu.dll that is compiled against NHibernate 3.2? From 3.2, NHibernate ha its own embedded proxy generator: there are nо more need of NHibernate.ByteCode.LinFu.dll or NHibernate.ByteCode.Castle.dll and I don't think they are supported any more. I think you have to download the last supported source of NHibernate.ByteCode.LinFu.dll source, and try to compile it against the 3.2. in NHibernate 3.2 you do not need NHibernate.ByteCode.LinFu.dll because NHibernate 3.2 implements the proxy by itself. so we need modify the config like as:

What are the differences between LinFu.DynamicProxy and Castle.DynamicProxy?

北城以北 提交于 2019-11-29 23:54:25
I am looking at adding logic to a library I am working on that would require the need for a Dynamic Proxy. I would like to get some advice from user's who have used these two library's in a production environment. Does one out perform the other, were there any shortcoming's which made you have to switch to the other, etc. Basically tell me your experiences with the library's. The answers will help me decide which one to use. -- Edit -- I forgot to mention that the library I am developing will support Mono, therefore any knowledge you can share about the two libraries and their support for Mono

What are the differences between LinFu.DynamicProxy and Castle.DynamicProxy?

十年热恋 提交于 2019-11-28 21:01:04
问题 I am looking at adding logic to a library I am working on that would require the need for a Dynamic Proxy. I would like to get some advice from user's who have used these two library's in a production environment. Does one out perform the other, were there any shortcoming's which made you have to switch to the other, etc. Basically tell me your experiences with the library's. The answers will help me decide which one to use. -- Edit -- I forgot to mention that the library I am developing will