ITranslationService Interface
Assembly: PTS.Modules.Translations.dll
Syntax
public interface ITranslationService
Methods
Entity<TEntity>(LanguageCode, TEntity)
Declaration
TranslatedEntity<TEntity> Entity<TEntity>(LanguageCode language, TEntity entity)
where TEntity : IHasGuid
Parameters
Returns
Type Parameters
EntityAsync<TEntity>(LanguageCode, TEntity)
Declaration
Task<TranslatedEntity<TEntity>> EntityAsync<TEntity>(LanguageCode language, TEntity entity)
where TEntity : IHasGuid
Parameters
Returns
Type Parameters
GetTranslation<TEntity>(LanguageCode, TEntity, Expression<Func<TEntity, String>>)
Declaration
Translation GetTranslation<TEntity>(LanguageCode language, TEntity entity, Expression<Func<TEntity, string>> property)
where TEntity : IHasGuid
Parameters
Type |
Name |
Description |
LanguageCode |
language |
|
TEntity |
entity |
|
System.Linq.Expressions.Expression<System.Func<TEntity, System.String>> |
property |
|
Returns
Type Parameters
GetTranslationAsync<TEntity>(LanguageCode, TEntity, Expression<Func<TEntity, String>>)
Declaration
Task<Translation> GetTranslationAsync<TEntity>(LanguageCode language, TEntity entity, Expression<Func<TEntity, string>> propertye)
where TEntity : IHasGuid
Parameters
Type |
Name |
Description |
LanguageCode |
language |
|
TEntity |
entity |
|
System.Linq.Expressions.Expression<System.Func<TEntity, System.String>> |
propertye |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<Translation> |
|
Type Parameters
Property<TEntity>(LanguageCode, TEntity, Expression<Func<TEntity, String>>)
Declaration
string Property<TEntity>(LanguageCode language, TEntity entity, Expression<Func<TEntity, string>> property)
where TEntity : IHasGuid
Parameters
Type |
Name |
Description |
LanguageCode |
language |
|
TEntity |
entity |
|
System.Linq.Expressions.Expression<System.Func<TEntity, System.String>> |
property |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
PropertyAsync<TEntity>(LanguageCode, TEntity, Expression<Func<TEntity, String>>)
Declaration
Task<string> PropertyAsync<TEntity>(LanguageCode language, TEntity entity, Expression<Func<TEntity, string>> property)
where TEntity : IHasGuid
Parameters
Type |
Name |
Description |
LanguageCode |
language |
|
TEntity |
entity |
|
System.Linq.Expressions.Expression<System.Func<TEntity, System.String>> |
property |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
Type Parameters
SetEntity<TEntity>(TranslatedEntity<TEntity>)
Declaration
void SetEntity<TEntity>(TranslatedEntity<TEntity> translated)
where TEntity : IHasGuid
Parameters
Type Parameters
SetProperty<TEntity>(LanguageCode, TEntity, Expression<Func<TEntity, String>>, String)
Declaration
Translation SetProperty<TEntity>(LanguageCode language, TEntity entity, Expression<Func<TEntity, string>> property, string value)
where TEntity : IHasGuid
Parameters
Type |
Name |
Description |
LanguageCode |
language |
|
TEntity |
entity |
|
System.Linq.Expressions.Expression<System.Func<TEntity, System.String>> |
property |
|
System.String |
value |
|
Returns
Type Parameters
SetTranslationAsync<TEntity>(LanguageCode, TEntity, Expression<Func<TEntity, String>>, String)
Declaration
Task<Translation> SetTranslationAsync<TEntity>(LanguageCode language, TEntity entity, Expression<Func<TEntity, string>> property, string value)
where TEntity : IHasGuid
Parameters
Type |
Name |
Description |
LanguageCode |
language |
|
TEntity |
entity |
|
System.Linq.Expressions.Expression<System.Func<TEntity, System.String>> |
property |
|
System.String |
value |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<Translation> |
|
Type Parameters
SetTranslationAsync<TEntity>(TranslatedEntity<TEntity>)
Declaration
Task SetTranslationAsync<TEntity>(TranslatedEntity<TEntity> translated)
where TEntity : IHasGuid
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
Extension Methods