|
| 1 | +//HintName: UserNotice.g.cs |
| 2 | +// <auto-generated/> |
| 3 | +#pragma warning disable 612,618 |
| 4 | +using System; |
| 5 | +using System.Runtime.CompilerServices; |
| 6 | + |
| 7 | +[CompilerGenerated] |
| 8 | +static file class UserNoticeRegistration |
| 9 | +{ |
| 10 | + [UnsafeAccessor(UnsafeAccessorKind.Constructor)] |
| 11 | + extern static global::UserNotice Creator(); |
| 12 | + [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<UserId>k__BackingField")] |
| 13 | + extern static ref ulong Field1(global::UserNotice @this); |
| 14 | + [UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<NoticeId>k__BackingField")] |
| 15 | + extern static ref ulong Field2(global::UserNotice @this); |
| 16 | + [ModuleInitializer] |
| 17 | + internal static unsafe void Register4BTDB() |
| 18 | + { |
| 19 | + global::BTDB.IOC.IContainer.RegisterFactory(typeof(global::UserNotice), (container, ctx) => |
| 20 | + { |
| 21 | + return (container2, ctx2) => |
| 22 | + { |
| 23 | + var res = new global::UserNotice(); |
| 24 | + return res; |
| 25 | + }; |
| 26 | + }); |
| 27 | + var metadata = new global::BTDB.Serialization.ClassMetadata(); |
| 28 | + metadata.Name = "UserNotice"; |
| 29 | + metadata.Type = typeof(global::UserNotice); |
| 30 | + metadata.Namespace = ""; |
| 31 | + metadata.Implements = []; |
| 32 | + metadata.Creator = &Creator; |
| 33 | + var dummy = Unsafe.As<global::UserNotice>(metadata); |
| 34 | + metadata.Fields = new global::BTDB.Serialization.FieldMetadata[] |
| 35 | + { |
| 36 | + new global::BTDB.Serialization.FieldMetadata |
| 37 | + { |
| 38 | + Name = "UserId", |
| 39 | + Type = typeof(ulong), |
| 40 | + ByteOffset = global::BTDB.Serialization.RawData.CalcOffset(dummy, ref Field1(dummy)), |
| 41 | + }, |
| 42 | + new global::BTDB.Serialization.FieldMetadata |
| 43 | + { |
| 44 | + Name = "NoticeId", |
| 45 | + Type = typeof(ulong), |
| 46 | + ByteOffset = global::BTDB.Serialization.RawData.CalcOffset(dummy, ref Field2(dummy)), |
| 47 | + }, |
| 48 | + }; |
| 49 | + global::BTDB.Serialization.ReflectionMetadata.Register(metadata); |
| 50 | + } |
| 51 | +} |
0 commit comments