TranslatedEntity<TEntity> Class
Assembly: PTS.Modules.Translations.dll
Syntax
public class TranslatedEntity<TEntity>
where TEntity : IHasGuid
Type Parameters
Inheritance
System.Object
TranslatedEntity<TEntity>
Constructors
TranslatedEntity(LanguageCode, TEntity)
Declaration
public TranslatedEntity(LanguageCode language, TEntity entity)
Parameters
TranslatedEntity(LanguageCode, TEntity, IEnumerable<Translation>)
Declaration
public TranslatedEntity(LanguageCode language, TEntity entity, IEnumerable<Translation> translations)
Parameters
Type |
Name |
Description |
LanguageCode |
language |
|
TEntity |
entity |
|
System.Collections.Generic.IEnumerable<Translation> |
translations |
|
Properties
Entity
Declaration
public virtual TEntity Entity { get; }
Property Value
Language
Declaration
public LanguageCode Language { get; }
Property Value
Methods
Property(Expression<Func<TEntity, String>>)
Declaration
public string Property(Expression<Func<TEntity, string>> property)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<TEntity, System.String>> |
property |
|
Returns
Type |
Description |
System.String |
|
SetProperty(Expression<Func<TEntity, String>>, String)
Declaration
public TranslatedEntity<TEntity> SetProperty(Expression<Func<TEntity, string>> property, string value)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<TEntity, System.String>> |
property |
|
System.String |
value |
|
Returns
ToTranslations()
Declaration
public Translation[] ToTranslations()
Returns
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Extension Methods