Skip to content

RokkitLabs/Mongolia

Repository files navigation

🗄️ Mongolia

GitHub Workflow Status (branch) GitHub Workflow Status (branch)

👷 Installation

Nuget

Releases

🕴️ Usage

Create repo

using Mongolia;

//Create a new database
DB db = new DB("mongodb://localhost:27017/?ssl=false", "mongoliaExample");

//Get repo from context
DbRepository<User> userRepo = db.GetRepository<User>();

Create

User newUser = new User() {
    Username = "Test User"
};
//Await the creation of the newUser
await userRepo.Create(newUser);

Find One

User user = await UserRepo.FindOne(new { Username = "Test user" });

Update

User newUser = new User() {
    Username = "Test User"
};

//Await the creation of the newUser
User user = await userRepo.Create(newUser);

user.Username = "Not Test User";
await user.Save();

🥅 Goals

  • Usable

✨ Contributors


unlimitedcoder2

💻

TatoExp

💻

About

Mongolia

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •  

Languages