RapidORM.dll 1.0.10

Dynamic Object Relational Mapping technology for easy CRUD operations

Install-Package RapidORM.dll -Version 1.0.10
dotnet add package RapidORM.dll --version 1.0.10
<PackageReference Include="RapidORM.dll" Version="1.0.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RapidORM.dll --version 1.0.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Expressive, dynamic, functional, and easy-to-use Object Relational Mapping technology that allows you to do your CRUD operations on-the-fly. RapidORM lets you focus more on the behavior of your app instead of spending more time composing queries for database operations.

More so, RapidORM supports multiple databases in the industry(and growing).

Required NuGet Package

Rapid ORM Core - Needed external libraries for RapidORM. Package includes MySql.Data and SQLLite dependencies

Supported Database

SQL Server, MYSQL, SQLite

Getting Started

This right here is a sample for SQL Server.

  • First off, you need to import the RapidORM packages from NuGet. As easy as finding "RapidORM" after clicking Manage NuGet from your project. Install those two packages and you're all set to use RapidORM.

  • Create a database wrapper class inside your project. Create a static method. The content shoud be the instantiation of the DBConnection class. Reference RapidORM.Data. Like so,

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RapidORM.Data;

namespace RapidORM.Tests.Core
{
    public class Database
    {
        public static void UseDB()
        {
            DBConnection.ConnectionString = new DBConnectionSetting()
            {
                Server = "",
                Database = "",
                Username = "",
                Password = ""
            };
        }
    }
}
  • Now, create your model. Your model should be the counterpart of your database table. Hence, if I have a "department" table, you could have a "Department" class as well. Please also note that you can interactively create your model using the RapiORM Entity Creator.

  • Reference the basic libraries -> RapidORM.Data, RapidORM.Data.Common and RapidORM.Data.SQL(SQL Server)(This could be RapidORM.Data.MySql for MySQL, and RapidORM.Data.SQLite for SQLite). You can choose what library to remove and/or add depending on your requirements.

  • Now, map your properties

[IsPrimaryKey(true)]
[ColumnName("ID")]
public int Id { get; set; }

[ColumnName("Column1")]
public string Column1 { get; set; }
  • Declare the DB Entity
private IDBEntity<MyClass> dbEntity = new SqlEntity<MyClass>();
  • Here's the sample model.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RapidORM.Data;
using RapidORM.Data.Common
using RapidORM.Data.SQL;

namespace MyNamespace
{
    [TableName("DB Table Name")]
    public class MyClass
    {
        [IsPrimaryKey(true)]
        [ColumnName("ID")]
        public int Id { get; set; }

        [ColumnName("Column1")]
        public string Column1 { get; set; }

        private IDBEntity<MyClass> dbEntity = new SqlEntity<MyClass>();

        #region Class Methods
        public void GetAllUserProfiles()
        {
            var myList = dbEntity.GetAllObjects();
            foreach (var item in myList)
            {
                Console.WriteLine(item.Column1);
            }
        }
        
        //Your other methods here(Please see the test project for reference)
        #endregion 
    }
}
  • You see, in just a few lines of code, you can now perform DB operations. Basic understanding of OOP is needed and you're set to go. By the way, RapidORM also comes with a QueryBuilder. So, if you are into queries or your app involves complex joins or logic that can only be achieved using a query, you can solve it using RapidORM as well. A separate comprehensive tutorial will be published soon to highlight RapiORM's capability on different platforms.

  • That should be it.

Expressive, dynamic, functional, and easy-to-use Object Relational Mapping technology that allows you to do your CRUD operations on-the-fly. RapidORM lets you focus more on the behavior of your app instead of spending more time composing queries for database operations.

More so, RapidORM supports multiple databases in the industry(and growing).

Required NuGet Package

Rapid ORM Core - Needed external libraries for RapidORM. Package includes MySql.Data and SQLLite dependencies

Supported Database

SQL Server, MYSQL, SQLite

Getting Started

This right here is a sample for SQL Server.

  • First off, you need to import the RapidORM packages from NuGet. As easy as finding "RapidORM" after clicking Manage NuGet from your project. Install those two packages and you're all set to use RapidORM.

  • Create a database wrapper class inside your project. Create a static method. The content shoud be the instantiation of the DBConnection class. Reference RapidORM.Data. Like so,

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RapidORM.Data;

namespace RapidORM.Tests.Core
{
    public class Database
    {
        public static void UseDB()
        {
            DBConnection.ConnectionString = new DBConnectionSetting()
            {
                Server = "",
                Database = "",
                Username = "",
                Password = ""
            };
        }
    }
}
  • Now, create your model. Your model should be the counterpart of your database table. Hence, if I have a "department" table, you could have a "Department" class as well. Please also note that you can interactively create your model using the RapiORM Entity Creator.

  • Reference the basic libraries -> RapidORM.Data, RapidORM.Data.Common and RapidORM.Data.SQL(SQL Server)(This could be RapidORM.Data.MySql for MySQL, and RapidORM.Data.SQLite for SQLite). You can choose what library to remove and/or add depending on your requirements.

  • Now, map your properties

[IsPrimaryKey(true)]
[ColumnName("ID")]
public int Id { get; set; }

[ColumnName("Column1")]
public string Column1 { get; set; }
  • Declare the DB Entity
private IDBEntity<MyClass> dbEntity = new SqlEntity<MyClass>();
  • Here's the sample model.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RapidORM.Data;
using RapidORM.Data.Common
using RapidORM.Data.SQL;

namespace MyNamespace
{
    [TableName("DB Table Name")]
    public class MyClass
    {
        [IsPrimaryKey(true)]
        [ColumnName("ID")]
        public int Id { get; set; }

        [ColumnName("Column1")]
        public string Column1 { get; set; }

        private IDBEntity<MyClass> dbEntity = new SqlEntity<MyClass>();

        #region Class Methods
        public void GetAllUserProfiles()
        {
            var myList = dbEntity.GetAllObjects();
            foreach (var item in myList)
            {
                Console.WriteLine(item.Column1);
            }
        }
        
        //Your other methods here(Please see the test project for reference)
        #endregion 
    }
}
  • You see, in just a few lines of code, you can now perform DB operations. Basic understanding of OOP is needed and you're set to go. By the way, RapidORM also comes with a QueryBuilder. So, if you are into queries or your app involves complex joins or logic that can only be achieved using a query, you can solve it using RapidORM as well. A separate comprehensive tutorial will be published soon to highlight RapiORM's capability on different platforms.

  • That should be it.

Release Notes

This version contains enhancements. Code refactor was prioritized to make the product easier to use. More info and usage are shown on the documentation.

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.10 307 11/29/2017
1.0.0 266 11/20/2017