mirror of https://github.com/Squidex/squidex.git
19 changed files with 118 additions and 188 deletions
@ -1,15 +0,0 @@ |
|||||
// ==========================================================================
|
|
||||
// Squidex Headless CMS
|
|
||||
// ==========================================================================
|
|
||||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
||||
// All rights reserved. Licensed under the MIT license.
|
|
||||
// ==========================================================================
|
|
||||
|
|
||||
namespace Squidex.Infrastructure.MongoDb |
|
||||
{ |
|
||||
public enum MongoDbEngine |
|
||||
{ |
|
||||
DocumentDb, |
|
||||
MongoDb, |
|
||||
} |
|
||||
} |
|
||||
@ -1,24 +0,0 @@ |
|||||
// ==========================================================================
|
|
||||
// Squidex Headless CMS
|
|
||||
// ==========================================================================
|
|
||||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
||||
// All rights reserved. Licensed under the MIT license.
|
|
||||
// ==========================================================================
|
|
||||
|
|
||||
namespace Squidex.Infrastructure.MongoDb |
|
||||
{ |
|
||||
public sealed class MongoDbOptions |
|
||||
{ |
|
||||
public MongoDbEngine Engine { get; set; } = MongoDbEngine.MongoDb; |
|
||||
|
|
||||
public bool IsDocumentDb |
|
||||
{ |
|
||||
get { return Engine == MongoDbEngine.DocumentDb; } |
|
||||
} |
|
||||
|
|
||||
public bool IsMongoDb |
|
||||
{ |
|
||||
get { return Engine == MongoDbEngine.MongoDb; } |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue