RapidORM.dll 1.0.10

dotnet add package RapidORM.dll --version 1.0.10
NuGet\Install-Package RapidORM.dll -Version 1.0.10
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: RapidORM.dll, 1.0.10"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RapidORM.dll as a Cake Addin
#addin nuget:?package=RapidORM.dll&version=1.0.10

// Install RapidORM.dll as a Cake Tool
#tool nuget:?package=RapidORM.dll&version=1.0.10

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.

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.10 1,099 11/29/2017
1.0.0 1,056 11/20/2017

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