| | | 1 | | // <auto-generated /> |
| | | 2 | | #nullable enable |
| | | 3 | | namespace Api.Works.Queries |
| | | 4 | | { |
| | | 5 | | public static partial class AuthorMapper |
| | | 6 | | { |
| | | 7 | | [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")] |
| | | 8 | | public static partial global::System.Linq.IQueryable<global::Api.Works.Queries.Author> ProjectToDto(this global: |
| | 1 | 9 | | { |
| | | 10 | | #nullable disable |
| | 1 | 11 | | return global::System.Linq.Queryable.Select( |
| | 1 | 12 | | q, |
| | 1 | 13 | | x => new global::Api.Works.Queries.Author() |
| | 1 | 14 | | { |
| | 1 | 15 | | Id = x.Id, |
| | 1 | 16 | | RowVersion = x.RowVersion, |
| | 1 | 17 | | MetadataAddedAt = x.MetadataAddedAt, |
| | 1 | 18 | | MetadataUpdatedAt = x.MetadataUpdatedAt, |
| | 1 | 19 | | FirstName = x.FirstName, |
| | 1 | 20 | | LastName = x.LastName, |
| | 1 | 21 | | DisplayName = x.DisplayName, |
| | 1 | 22 | | PenNames = x.PenNames, |
| | 1 | 23 | | } |
| | 1 | 24 | | ); |
| | | 25 | | #nullable enable |
| | 1 | 26 | | } |
| | | 27 | | |
| | | 28 | | [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")] |
| | | 29 | | public static partial global::Api.Works.Queries.Author ToDto(global::Api.Works.Models.Author a) |
| | 1 | 30 | | { |
| | 1 | 31 | | var target = new global::Api.Works.Queries.Author() |
| | 1 | 32 | | { |
| | 1 | 33 | | DisplayName = a.DisplayName, |
| | 1 | 34 | | PenNames = a.PenNames, |
| | 1 | 35 | | }; |
| | 1 | 36 | | target.Id = a.Id; |
| | 1 | 37 | | target.RowVersion = a.RowVersion; |
| | 1 | 38 | | target.MetadataAddedAt = a.MetadataAddedAt; |
| | 1 | 39 | | target.MetadataUpdatedAt = a.MetadataUpdatedAt; |
| | 1 | 40 | | target.FirstName = a.FirstName; |
| | 1 | 41 | | target.LastName = a.LastName; |
| | 1 | 42 | | return target; |
| | 1 | 43 | | } |
| | | 44 | | } |
| | | 45 | | } |