NeuCharFramework (NCF)
  • NCF - NeuCharFramework
  • Projects

    • Preparation
    • Basic Library Source Code Analysis
    • DynamicWebApiEngine
    • Deployment
  • Help

    • Online Resources
    • Q&A Community
    • QQ Group (147054579)
    • Senparc WeChat SDK
  • Gitee
  • GitHub
  • English
  • 简体中文
GitHub
  • NCF - NeuCharFramework
  • Projects

    • Preparation
    • Basic Library Source Code Analysis
    • DynamicWebApiEngine
    • Deployment
  • Help

    • Online Resources
    • Q&A Community
    • QQ Group (147054579)
    • Senparc WeChat SDK
  • Gitee
  • GitHub
  • English
  • 简体中文
GitHub
  • NCF Libraries

    • Senparc.Ncf.Core
    • Senparc.Ncf.Repository
    • Senparc.Ncf.Service
    • Senparc.Ncf.SMS
    • Senparc.Ncf.Mvc.UI
    • Senparc.Ncf.Log
    • Senparc.Ncf.Utility
    • Senparc.Ncf.XncfBase
    • Senparc.Ncf.AreaBase
    • Senparc.Ncf.DatabasePlant
  • Senparc.Ncf.AreaBase

    • IXncfRegister Interface

Senparc.Ncf.Repository

Overview

Senparc.Ncf.Repository is a core component of the NeuCharFramework (NCF) system. It provides a set of standardized data access interfaces and implementations, which facilitate the development and maintenance of applications.

Features

  • Unified Interface: Provides a unified data access interface, reducing the learning curve for developers.
  • Extensibility: Supports custom extensions, allowing developers to extend functionality as needed.
  • Compatibility: Compatible with various databases, making it easy to switch between different database systems.

Installation

To install Senparc.Ncf.Repository, you can use the following command:

dotnet add package Senparc.Ncf.Repository

Usage

Basic Usage

Below is an example of how to use Senparc.Ncf.Repository in your project:

using Senparc.Ncf.Repository;

public class MyService
{
    private readonly IRepository<MyEntity> _repository;

    public MyService(IRepository<MyEntity> repository)
    {
        _repository = repository;
    }

    public void AddEntity(MyEntity entity)
    {
        _repository.Insert(entity);
    }

    public MyEntity GetEntity(int id)
    {
        return _repository.GetObject(id);
    }
}

Advanced Usage

For more advanced usage, you can refer to the official documentation at NCF Documentation.

Contributing

If you wish to contribute to the project, please follow the guidelines outlined in the CONTRIBUTING.md file.

License

Senparc.Ncf.Repository is licensed under the MIT License. For more details, please refer to the LICENSE file.

Contact

For any questions or feedback, please contact us at support@senparc.com.

Senparc Logo

Edit this page on GitHub
Last Updated:
Contributors: Jeffrey Su
Prev
Senparc.Ncf.Core
Next
Senparc.Ncf.Service