Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

50 lines
1.4 KiB

// ==========================================================================
// 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<T>
{
[BsonRepresentation(BsonType.DateTime)]
public T Value { get; set; }
}
public sealed class Int64Entity<T>
{
[BsonRepresentation(BsonType.Int64)]
public T Value { get; set; }
}
public sealed class Int32Entity<T>
{
[BsonRepresentation(BsonType.Int32)]
public T Value { get; set; }
}
public sealed class StringEntity<T>
{
[BsonRepresentation(BsonType.String)]
public T Value { get; set; }
}
public sealed class BinaryEntity<T>
{
[BsonRepresentation(BsonType.Binary)]
public T Value { get; set; }
}
public sealed class DefaultEntity<T>
{
public T Value { get; set; }
}
}
}