0
如何覆蓋泛型類的映射? 我有這個類:FluentNHibernate覆蓋泛型類
public abstract class TranslatableEntity<TTranslation, TEntity> : Entity
{
public virtual String Name { get;set; }
// ...
}
我whant做到這一點:
public class TranslatableEntityMap<T> : IAutoMappingOverride<TranslatableEntity<T>>
{
public void Override(AutoMapping<TranslatableEntityMap<T>> mapping)
{
mapping.IgnoreProperty(x => x.Name);
}
}
我怎樣才能做到這一點? 謝謝!