-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPersonSummary.cs
29 lines (25 loc) · 1.03 KB
/
PersonSummary.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//// <autogenerated>
//// This file was generated by T4 code generator MRManger-Expressions.tt.
//// Any changes made to this file manually will be lost next time the file is regenerated.
//// </autogenerated>
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Linq.Expressions;
//using Common.DataEntites;
//using EF.Entities;
//using Interfaces;
//namespace Entity.Expressions
//{
// public static partial class PersonsExpressions
// {
// public static Expression<Func<IQueryable<Persons>, PersonSummary>> GetPersonSummary { get; } = x => new PersonSummary()
// {
// Id = x.First().Id,
// Name = x.GetPersonNames().Select(z => z.PersonName).StringJoin(" "),
// Address = x.GetAddressLines().Select(z => z.AddressLine).StringJoin(","),
// PhoneNumber = x.GetPersonPhoneNumbers().Select(z => z.PhoneNumber).StringJoin(","),
// Photo = x.GetMedia().Select(z => z.Value).FirstOrDefault()
// };
// }
//}