All Projects → pbpraveen1988 → Database And Queries

pbpraveen1988 / Database And Queries

Projects that are alternatives of or similar to Database And Queries

Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 7,712 (+96300%)
Mutual labels:  database, mysql
Mysqlconnection
Simple library to make it much easier to use MySQL in Visual Studio projects
Stars: ✭ 6 (-25%)
Mutual labels:  database, mysql
Bookshelf
A simple Node.js ORM for PostgreSQL, MySQL and SQLite3 built on top of Knex.js
Stars: ✭ 6,252 (+78050%)
Mutual labels:  database, mysql
Tidb
TiDB is an open source distributed HTAP database compatible with the MySQL protocol
Stars: ✭ 29,871 (+373287.5%)
Mutual labels:  database, mysql
Reiner
萊納 - A MySQL wrapper which might be better than the ORMs and written in Golang
Stars: ✭ 19 (+137.5%)
Mutual labels:  database, mysql
Baikaldb
BaikalDB, A Distributed HTAP Database.
Stars: ✭ 707 (+8737.5%)
Mutual labels:  database, mysql
Ansible Role Mysql
Ansible Role - MySQL
Stars: ✭ 826 (+10225%)
Mutual labels:  database, mysql
Laravel Db Snapshots
Quickly dump and load databases
Stars: ✭ 650 (+8025%)
Mutual labels:  database, mysql
Go Book Store Api
Go Sample project to understand Mysql CRUD operation with best practises Includes logging, JWT, Swagger and Transactions
Stars: ✭ 18 (+125%)
Mutual labels:  database, mysql
Phpmyadmin sql backup
A Python script to automate SQL dumps via phpMyAdmin's web interface
Stars: ✭ 17 (+112.5%)
Mutual labels:  database, mysql
Metabase
The simplest, fastest way to get business intelligence and analytics to everyone in your company 😋
Stars: ✭ 26,803 (+334937.5%)
Mutual labels:  database, mysql
Mariadb Container
MariaDB container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Stars: ✭ 19 (+137.5%)
Mutual labels:  database, mysql
Database rewinder
minimalist's tiny and ultra-fast database cleaner
Stars: ✭ 685 (+8462.5%)
Mutual labels:  database, mysql
Db Dumper
Dump the contents of a database
Stars: ✭ 744 (+9200%)
Mutual labels:  database, mysql
Blog
Everything about database,business.(Most for PostgreSQL).
Stars: ✭ 6,330 (+79025%)
Mutual labels:  database, mysql
Eralchemy
Entity Relation Diagrams generation tool
Stars: ✭ 767 (+9487.5%)
Mutual labels:  database, mysql
Easydb
Easy-to-use PDO wrapper for PHP projects.
Stars: ✭ 624 (+7700%)
Mutual labels:  database, mysql
Leafpub
Simple, beautiful, open source publishing.
Stars: ✭ 645 (+7962.5%)
Mutual labels:  database, mysql
Goloquent
This repo no longer under maintenance, please go to https://github.com/si3nloong/sqlike
Stars: ✭ 16 (+100%)
Mutual labels:  database, mysql
Pecee Pixie
Lightweight, easy-to-use querybuilder for PHP inspired by Laravel Eloquent - but with less overhead.
Stars: ✭ 19 (+137.5%)
Mutual labels:  database, mysql

Database-And-Queries

Repository and Unit of Work Pattern and Implementing Generic Repository in ASP.NET MVC using Fluent NHibernate.
Right now we written the library in C# , working for VB also , will release soon.

The following the are the features of the library:
a) User Can easily connect to any database due to Fluent NHibernate ORM
b) Already tested with MsSql2005,MsSql2008,MsSql2012,MYSQL,SQLITE. Working with ORACLE,POSTGRESQL.
c) Dont have to create the Mapping File, we implemented the AutoMapping, just have to create the class according tables.


Technical Specifications:

As you can see, there are two classes :

  1. Queries.cs
  2. SessionFactory.cs

SessionFactory.cs:
This is the Main File or Configuration File , We have to set the Few Paramters here to Connect the Database
like Hostname,Database Name, Database password , Database Type (which we have to use like Mysql,MS sql etc.)
To make the AutoMapping : have to set True or False, if true , have to provide the NameSpace of Models (where we put the classes)
Parameters
DatabaseName : Name of the database.
DatabaseHost : Ip or Domain name of host of database.
DatabaseUser : Username of the database
DatabasePassword : Password of the database.
AssemblyName : We have to Provide the name of the Assembly , where the models is placed.
NameSpaceM : Namespace of the Models only (if Automapping is true then only).
AutoMapping : True or False

Queries.cs :
In this file we write the Complete queries for CRUD operations and also with Multiple Conditions ,Order By, Sort By etc.
You can see the example in Attached Example Project.

Example With Mysql

We created the Windows Desktop for Example, we put the code in Program.cs, we have to initialize on Start of project.

DatabaseAndQueries.SessionFactory.DatabaseType = DatabaseAndQueries.DBTYPE.MySql.ToString();
DatabaseAndQueries.SessionFactory.DatabaseHost = "localhost";
DatabaseAndQueries.SessionFactory.DatabaseName = "TestGithub";
DatabaseAndQueries.SessionFactory.DatabasePassword = "123456";
DatabaseAndQueries.SessionFactory.DatabaseUser = "root";
DatabaseAndQueries.SessionFactory.NameSpaceM = "Example.Models";
DatabaseAndQueries.SessionFactory.AutoMapping = true;
DatabaseAndQueries.SessionFactory.AssemblyName = System.Reflection.Assembly.GetExecutingAssembly().ToString();


Insert data in to table
-----------------------
User _user = new User();
_user.Name = textBox1.Text;
Queries.Add<User>(_user);


Delete the data
------------
Queries.Delete<User>(_user);

Get Data by Condition
--------------------
Queries.GetDataByCondition<User>(x => x.Name == "John doe");

Retrieve all Rows from database
-------------------------------
Queries.GetAllData<User>();

Update the particular Row
---------------------------
Queries.Update<User>(_user);

Check the data exists or not
--------------------------------
Queries.IsExists<User>(x => x.Name == "John doe");

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].