On Mar 3, 10:44 am, Steve Mason <
smaso...@gmail.com> wrote:
> Hi,
>
> I'd like to mix a fluent mapping file with the default AutoMapping
> functionality, but I'm coming across the following error:
>
> System.ArgumentException: Object of type
> 'MyProject.Data.NHibernateMaps.FosterFormMapping' cannot be converted
> to type 'FluentNHibernate.AutoMap.AutoMap`1
> [MyProject.Core.Domain.FosterForm]'.
>
> at System.RuntimeType.CheckValue(Object value, Binder binder,
> CultureInfo culture, BindingFlags invokeAttr)
> at System.Reflection.MethodBase.CheckArguments(Object[] parameters,
> Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature
> sig)
> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
> invokeAttr, Binder binder, Object[] parameters, CultureInfo culture,
> Boolean skipVisibilityChecks)
> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
> invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
> at
> FluentNHibernate.Utils.InvocationHelper.InvokeGenericMethodWithDynamicTypeArguments<T>