示例#1
0
 public static Search.Models.Synonym AsSearchModel(this Models.Synonym source) => new Search.Models.Synonym
 {
     Id          = source.SynonymId,
     Name        = source.Name,
     Rank        = source.Rank,
     Language    = source.Language,
     DateUpdated = source.DateUpdated,
     Origin      = source.Origin?.AsSearchModel()
 };
示例#2
0
 public static Synonym AsStore(this Models.Synonym source) => new Synonym
 {
     Id          = source.SynonymId,
     Name        = source.Name,
     Rank        = source.Rank,
     Language    = source.Language,
     DateUpdated = source.DateUpdated,
     TaxonId     = source.Taxon?.TaxonId ?? source.TaxonId,
     OriginId    = source.Origin?.OriginId
 };