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
Hello,
I think there little bug in mutilingual entity.
When I create class like this :
public class ProductTranslation: Entity<long>, IEntityTranslation<Product>
It is blocking for creating configuration.CreateMultiLingualMap<Product, ProductTranslation, ProductDto>(context);
Message:
Error CS0311 The type 'ProductTranslation' cannot be used as type parameter 'TTranslation' in the generic type or method 'AutoMapExtensions.CreateMultiLingualMap<TMultiLingualEntity, TTranslation, TDestination>(IMapperConfigurationExpression, MultiLingualMapContext, bool)'. There is no implicit reference conversion from 'ProductTranslation' to 'Abp.Domain.Entities.IEntity'.
When I set Entity as int everything fine,
I think its because of IEntity<TPrimaryKey> not set in ITranslateEntity.
The text was updated successfully, but these errors were encountered:
It doenst help, because IEntityTranslation does not implement TPrimary interface . Error
Error CS0738 'ProductTranslation' does not implement interface member 'IEntityTranslation<Product, long>.CoreId'. 'ProductTranslation.CoreId' cannot implement 'IEntityTranslation<Product, long>.CoreId' because it does not have the matching return type of 'long'.
Hello,
I think there little bug in mutilingual entity.
When I create class like this :
public class ProductTranslation: Entity<long>, IEntityTranslation<Product>
It is blocking for creating configuration.CreateMultiLingualMap<Product, ProductTranslation, ProductDto>(context);
Message:
Error CS0311 The type 'ProductTranslation' cannot be used as type parameter 'TTranslation' in the generic type or method 'AutoMapExtensions.CreateMultiLingualMap<TMultiLingualEntity, TTranslation, TDestination>(IMapperConfigurationExpression, MultiLingualMapContext, bool)'. There is no implicit reference conversion from 'ProductTranslation' to 'Abp.Domain.Entities.IEntity'.
When I set Entity as int everything fine,
I think its because of IEntity<TPrimaryKey> not set in ITranslateEntity.
The text was updated successfully, but these errors were encountered: