You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicvoidMapingFromAssembly(Assemblyassembly){ExtensionListres;if(!_hash.TryGetValue(assembly,outres)){res=newExtensionList();_hash.Add(assembly,res);stringfluentType=typeof(IFluentMap).FullName;varmapTypes=fromtypeinassembly.GetTypes()wheretype.IsClass&&!type.IsAbstract&&!type.IsGenericType&&(null!=type.GetInterface(fluentType))// Is IFluentMap&&(null!=type.GetConstructor(newType[0]))// Is defaut ctorselecttype;foreach(varfluentMapTypeinmapTypes){MapingFromType(fluentMapType);}}//FluentMapHelper.MergeExtensions(res, ref this._extensions);}
"MapingFromAssemblyOf" executes code only once for each assembly, so such code will not work properly:
if there is no ability to make "//FluentMapHelper.MergeExtensions(res, ref this._extensions);" code works, maybe it is possible to remove "if" condition and process every assembly multiple times?
The text was updated successfully, but these errors were encountered:
In this code:
https://github.com/igor-tkachev/bltoolkit/blob/master/Source/Mapping/Fluent/FluentConfig.cs
"MapingFromAssemblyOf" executes code only once for each assembly, so such code will not work properly:
if there is no ability to make "//FluentMapHelper.MergeExtensions(res, ref this._extensions);" code works, maybe it is possible to remove "if" condition and process every assembly multiple times?
The text was updated successfully, but these errors were encountered: