| | | 1 | | // <auto-generated /> |
| | | 2 | | #nullable enable |
| | | 3 | | namespace Api.Files.Queries |
| | | 4 | | { |
| | | 5 | | public static partial class FileRecordMapper |
| | | 6 | | { |
| | | 7 | | [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")] |
| | | 8 | | [return: global::System.Diagnostics.CodeAnalysis.NotNullIfNotNull(nameof(f))] |
| | | 9 | | public static partial global::Api.Files.Queries.FileRecord? ToDto(global::Api.Files.Models.FileRecord? f) |
| | 1 | 10 | | { |
| | 1 | 11 | | if (f == null) |
| | 0 | 12 | | return default; |
| | 1 | 13 | | var target = new global::Api.Files.Queries.FileRecord() |
| | 1 | 14 | | { |
| | 1 | 15 | | ContentType = f.ContentType, |
| | 1 | 16 | | SHA256 = f.SHA256, |
| | 1 | 17 | | }; |
| | 1 | 18 | | target.Id = f.Id; |
| | 1 | 19 | | target.RowVersion = f.RowVersion; |
| | 1 | 20 | | target.MetadataAddedAt = f.MetadataAddedAt; |
| | 1 | 21 | | target.MetadataUpdatedAt = f.MetadataUpdatedAt; |
| | 1 | 22 | | target.FileKind = f.FileKind; |
| | 1 | 23 | | target.FileProviderBackendConfigId = f.FileProviderBackendConfigId; |
| | 1 | 24 | | target.Uploaded = f.Uploaded; |
| | 1 | 25 | | target.OriginalFileName = f.OriginalFileName; |
| | 1 | 26 | | target.SizeBytes = f.SizeBytes; |
| | 1 | 27 | | return target; |
| | 1 | 28 | | } |
| | | 29 | | |
| | | 30 | | [global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "4.3.1.0")] |
| | | 31 | | public static partial global::System.Linq.IQueryable<global::Api.Files.Queries.FileRecord> ProjectToDto(this glo |
| | 1 | 32 | | { |
| | | 33 | | #nullable disable |
| | 1 | 34 | | return global::System.Linq.Queryable.Select( |
| | 1 | 35 | | q, |
| | 1 | 36 | | x => new global::Api.Files.Queries.FileRecord() |
| | 1 | 37 | | { |
| | 1 | 38 | | Id = x.Id, |
| | 1 | 39 | | RowVersion = x.RowVersion, |
| | 1 | 40 | | MetadataAddedAt = x.MetadataAddedAt, |
| | 1 | 41 | | MetadataUpdatedAt = x.MetadataUpdatedAt, |
| | 1 | 42 | | FileKind = x.FileKind, |
| | 1 | 43 | | FileProviderBackendConfigId = x.FileProviderBackendConfigId, |
| | 1 | 44 | | Uploaded = x.Uploaded, |
| | 1 | 45 | | OriginalFileName = x.OriginalFileName, |
| | 1 | 46 | | ContentType = x.ContentType, |
| | 1 | 47 | | SizeBytes = x.SizeBytes, |
| | 1 | 48 | | SHA256 = x.SHA256, |
| | 1 | 49 | | } |
| | 1 | 50 | | ); |
| | | 51 | | #nullable enable |
| | 1 | 52 | | } |
| | | 53 | | } |
| | | 54 | | } |