This repository has been archived by the owner on May 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
override entity name with jsonobjectattribute id
- Loading branch information
Showing
6 changed files
with
93 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/BorderEast.ArangoDB.Client/BorderEast.ArangoDB.Client/IArangoClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using BorderEast.ArangoDB.Client.Database; | ||
|
||
namespace BorderEast.ArangoDB.Client { | ||
|
||
/// <summary> | ||
/// Entry point for interacting with ArangoDB. You only need one instance of this class, | ||
/// even if working with multiple databases, hence the Singleton pattern. | ||
/// </summary> | ||
public interface IArangoClient { | ||
|
||
/// <summary> | ||
/// Convience method to get the default database. | ||
/// </summary> | ||
/// <returns></returns> | ||
ArangoDatabase DB(); | ||
|
||
/// <summary> | ||
/// Get database by name | ||
/// </summary> | ||
/// <param name="database"></param> | ||
/// <returns></returns> | ||
ArangoDatabase DB(string database); | ||
|
||
/// <summary> | ||
/// Initialize a new database, does not actually create the db in Arango | ||
/// </summary> | ||
/// <param name="databaseSettings"></param> | ||
/// <returns></returns> | ||
ArangoDatabase InitDB(ClientSettings databaseSettings); | ||
|
||
/// <summary> | ||
/// Setup your default database | ||
/// </summary> | ||
/// <param name="defaultConnection"></param> | ||
void SetDefaultDatabase(ClientSettings defaultConnection); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters