2
はこのようなものから注入することが可能です=> DomainEntityViewModel.Description)ValueInjecter異なる種類/プロパティ名
ValueInjecterを使用しています。
ありがとうございました!
はこのようなものから注入することが可能です=> DomainEntityViewModel.Description)ValueInjecter異なる種類/プロパティ名
ValueInjecterを使用しています。
ありがとうございました!
あなたはこの注入を使用することができます。
public class MyInj : ConventionInjection
{
protected override bool Match(ConventionInfo c)
{
return c.TargetProp.Name == c.SourceProp.Name
&& c.TargetProp.Type == typeof (string)
&& c.SourceProp.Type == typeof (List<ResourceLocalization>);
}
protected override object SetValue(ConventionInfo c)
{
return ((List<ResourceLocalization>) c.SourceProp.Value).First().Value;
}
}