|
| 1 | +// <auto-generated /> |
| 2 | +#nullable enable |
| 3 | + |
| 4 | +namespace FluentCommand.Entities |
| 5 | +{ |
| 6 | + internal sealed class ContactGeneratedTypeAccessor : global::FluentCommand.Reflection.TypeAccessor |
| 7 | + { |
| 8 | + internal static readonly global::FluentCommand.Reflection.IMemberAccessor IdMember = new IdMemberAccessor(); |
| 9 | + internal static readonly global::FluentCommand.Reflection.IMemberAccessor NameMember = new NameMemberAccessor(); |
| 10 | + internal static readonly global::FluentCommand.Reflection.IMemberAccessor EmailMember = new EmailMemberAccessor(); |
| 11 | + internal static readonly global::FluentCommand.Reflection.IMemberAccessor AgeMember = new AgeMemberAccessor(); |
| 12 | + |
| 13 | + public ContactGeneratedTypeAccessor() |
| 14 | + : base(typeof(global::FluentCommand.Entities.Contact), "Contact", null, static () => new global::FluentCommand.Entities.Contact()) |
| 15 | + { |
| 16 | + RegisterMember("Id", IdMember); |
| 17 | + RegisterMember("Name", NameMember); |
| 18 | + RegisterMember("Email", EmailMember); |
| 19 | + RegisterMember("Age", AgeMember); |
| 20 | + |
| 21 | + RegisterProperties( |
| 22 | + global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.Static | global::System.Reflection.BindingFlags.Instance, |
| 23 | + new global::FluentCommand.Reflection.IMemberAccessor[] |
| 24 | + { |
| 25 | + IdMember, |
| 26 | + NameMember, |
| 27 | + EmailMember, |
| 28 | + AgeMember |
| 29 | + }); |
| 30 | + } |
| 31 | + |
| 32 | + private sealed class IdMemberAccessor : global::FluentCommand.Reflection.IMemberAccessor |
| 33 | + { |
| 34 | + public global::System.Type MemberType => typeof(int); |
| 35 | + public string Name => "Id"; |
| 36 | + public string Column => "Id"; |
| 37 | + public string? ColumnType => null; |
| 38 | + public int? ColumnOrder => null; |
| 39 | + public bool IsKey => true; |
| 40 | + public bool IsNotMapped => false; |
| 41 | + public bool IsDatabaseGenerated => true; |
| 42 | + public bool IsConcurrencyCheck => false; |
| 43 | + public string? ForeignKey => null; |
| 44 | + public bool HasGetter => true; |
| 45 | + public bool HasSetter => true; |
| 46 | + public bool IsRequired => false; |
| 47 | + public string DisplayName => "Id"; |
| 48 | + public string? DataFormatString => null; |
| 49 | + |
| 50 | + public object? GetValue(object instance) |
| 51 | + => ((global::FluentCommand.Entities.Contact)instance).Id; |
| 52 | + |
| 53 | + public void SetValue(object instance, object? value) |
| 54 | + => ((global::FluentCommand.Entities.Contact)instance).Id = (int)value!; |
| 55 | + } |
| 56 | + |
| 57 | + private sealed class NameMemberAccessor : global::FluentCommand.Reflection.IMemberAccessor |
| 58 | + { |
| 59 | + public global::System.Type MemberType => typeof(string); |
| 60 | + public string Name => "Name"; |
| 61 | + public string Column => "Name"; |
| 62 | + public string? ColumnType => null; |
| 63 | + public int? ColumnOrder => null; |
| 64 | + public bool IsKey => false; |
| 65 | + public bool IsNotMapped => false; |
| 66 | + public bool IsDatabaseGenerated => false; |
| 67 | + public bool IsConcurrencyCheck => false; |
| 68 | + public string? ForeignKey => null; |
| 69 | + public bool HasGetter => true; |
| 70 | + public bool HasSetter => true; |
| 71 | + public bool IsRequired => true; |
| 72 | + public string DisplayName => "Name"; |
| 73 | + public string? DataFormatString => null; |
| 74 | + |
| 75 | + public object? GetValue(object instance) |
| 76 | + => ((global::FluentCommand.Entities.Contact)instance).Name; |
| 77 | + |
| 78 | + public void SetValue(object instance, object? value) |
| 79 | + => ((global::FluentCommand.Entities.Contact)instance).Name = (string)value!; |
| 80 | + } |
| 81 | + |
| 82 | + private sealed class EmailMemberAccessor : global::FluentCommand.Reflection.IMemberAccessor |
| 83 | + { |
| 84 | + public global::System.Type MemberType => typeof(string); |
| 85 | + public string Name => "Email"; |
| 86 | + public string Column => "Email"; |
| 87 | + public string? ColumnType => null; |
| 88 | + public int? ColumnOrder => null; |
| 89 | + public bool IsKey => false; |
| 90 | + public bool IsNotMapped => false; |
| 91 | + public bool IsDatabaseGenerated => false; |
| 92 | + public bool IsConcurrencyCheck => false; |
| 93 | + public string? ForeignKey => null; |
| 94 | + public bool HasGetter => true; |
| 95 | + public bool HasSetter => true; |
| 96 | + public bool IsRequired => false; |
| 97 | + public string DisplayName => "Email"; |
| 98 | + public string? DataFormatString => null; |
| 99 | + |
| 100 | + public object? GetValue(object instance) |
| 101 | + => ((global::FluentCommand.Entities.Contact)instance).Email; |
| 102 | + |
| 103 | + public void SetValue(object instance, object? value) |
| 104 | + => ((global::FluentCommand.Entities.Contact)instance).Email = (string?)value!; |
| 105 | + } |
| 106 | + |
| 107 | + private sealed class AgeMemberAccessor : global::FluentCommand.Reflection.IMemberAccessor |
| 108 | + { |
| 109 | + public global::System.Type MemberType => typeof(int?); |
| 110 | + public string Name => "Age"; |
| 111 | + public string Column => "Age"; |
| 112 | + public string? ColumnType => null; |
| 113 | + public int? ColumnOrder => null; |
| 114 | + public bool IsKey => false; |
| 115 | + public bool IsNotMapped => false; |
| 116 | + public bool IsDatabaseGenerated => false; |
| 117 | + public bool IsConcurrencyCheck => false; |
| 118 | + public string? ForeignKey => null; |
| 119 | + public bool HasGetter => true; |
| 120 | + public bool HasSetter => true; |
| 121 | + public bool IsRequired => false; |
| 122 | + public string DisplayName => "Age"; |
| 123 | + public string? DataFormatString => null; |
| 124 | + |
| 125 | + public object? GetValue(object instance) |
| 126 | + => ((global::FluentCommand.Entities.Contact)instance).Age; |
| 127 | + |
| 128 | + public void SetValue(object instance, object? value) |
| 129 | + => ((global::FluentCommand.Entities.Contact)instance).Age = (int?)value!; |
| 130 | + } |
| 131 | + |
| 132 | + } |
| 133 | + |
| 134 | + internal static class ContactTypeAccessorRegistration |
| 135 | + { |
| 136 | +#if NET5_0_OR_GREATER |
| 137 | + [global::System.Runtime.CompilerServices.ModuleInitializer] |
| 138 | +#endif |
| 139 | + internal static void Register() |
| 140 | + { |
| 141 | + global::FluentCommand.Reflection.TypeAccessor.Register( |
| 142 | + typeof(global::FluentCommand.Entities.Contact), |
| 143 | + new ContactGeneratedTypeAccessor()); |
| 144 | + } |
| 145 | + } |
| 146 | +} |
0 commit comments