Skip to content
This repository was archived by the owner on Jul 21, 2022. It is now read-only.

MateSQL is a simple .Net ORM created to small applications and to be easy to use for anyone, no matter the level on the language.

License

Notifications You must be signed in to change notification settings

brokenegg-io/Brokenegg.MateSQL

Repository files navigation

MateSQL

GitHub License Version GitHub branch checks state GitHub code size in bytes NuGet Downloads

Quick links

Installation

Our profile on the NuGet library brokenegg.io

Use the package manager NuGet to install MateSQL.

nuget install brokenegg.matesql

Usage

Creating a class and instantiating Autenticable To any other classes extends from MateSQL.DBModel

public class User : MateSQL.Autenticable
{
    public String Name { get; set; }
    public String Email { get; set; }
    public String Password { get; set; }
}

Initializing DBConfig

DBConfig.Database = "database";
DBConfig.Password = "password";
DBConfig.User = "username";
DBConfig.Server = "serverip";

Instantiating object

User User = new User();
User.SetDbConfig(Conf);

Listing users

List<User> users = User.Select<User>();

Authenticate

User user = User.Autenticate<User>(txtUsername.Text, txtPassword.Text);

Inserting

User.Name = "Jose";
User.Email = "[email protected]";
User.Password = "secret";
User.Insert();

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

[email protected]

Roadmap

  • Port from .Net Framework 4.5.1 to DotNet 5. Planned to v5.0.0;

License

MIT

About

MateSQL is a simple .Net ORM created to small applications and to be easy to use for anyone, no matter the level on the language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages