// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; namespace Squidex.Infrastructure.MongoDb { public static class Entities { public sealed class DateTimeEntity { [BsonRepresentation(BsonType.DateTime)] public T Value { get; set; } } public sealed class Int64Entity { [BsonRepresentation(BsonType.Int64)] public T Value { get; set; } } public sealed class Int32Entity { [BsonRepresentation(BsonType.Int32)] public T Value { get; set; } } public sealed class StringEntity { [BsonRepresentation(BsonType.String)] public T Value { get; set; } } public sealed class BinaryEntity { [BsonRepresentation(BsonType.Binary)] public T Value { get; set; } } public sealed class DefaultEntity { public T Value { get; set; } } } }