All Projects → realLiangshiwei → SharpPlugs

realLiangshiwei / SharpPlugs

Licence: MIT license
.Net Core 鋒利扩展

Programming Languages

C#
18002 projects
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to SharpPlugs

Module Shop
一个基于 .NET Core构建的简单、跨平台、模块化的商城系统
Stars: ✭ 398 (+1430.77%)
Mutual labels:  aspnetcore, netcore
Cqrswithmediatr
CQRS implementation in .NET Core with MediaTR tutorial
Stars: ✭ 71 (+173.08%)
Mutual labels:  aspnetcore, netcore
Netcorebbs
ASP.NET Core Light forum NETCoreBBS
Stars: ✭ 483 (+1757.69%)
Mutual labels:  aspnetcore, netcore
awesome-dotnet-async
A curated list of awesome articles and resources to learning and practicing about async, threading, and channels in .Net platform. 😉
Stars: ✭ 84 (+223.08%)
Mutual labels:  aspnetcore, netcore
Elmahcore
ELMAH for Net.Standard and Net.Core
Stars: ✭ 127 (+388.46%)
Mutual labels:  aspnetcore, netcore
Anet
A .NET Core Common Library , Framework and Boilerplate.
Stars: ✭ 255 (+880.77%)
Mutual labels:  aspnetcore, netcore
Couchdb Net
EF Core-like CouchDB experience for .NET!
Stars: ✭ 50 (+92.31%)
Mutual labels:  aspnetcore, netcore
AspSqliteCache
An ASP.NET Core IDistributedCache provider backed by SQLite
Stars: ✭ 39 (+50%)
Mutual labels:  aspnetcore, netcore
Neventlite
NEventLite - An extensible lightweight library for .NET that manages the Aggregate lifecycle in an Event Sourced system. Supports Event and Snapshot storage providers like EventStore/Redis or SQL Server. Built with dependency injection in mind and seamlessly integrates with AspNetCore.
Stars: ✭ 117 (+350%)
Mutual labels:  aspnetcore, netcore
Gitserver
ASP.NET Core Git HTTP Server
Stars: ✭ 98 (+276.92%)
Mutual labels:  aspnetcore, netcore
Cosmos.Identity
A Cosmos storage provider for ASP.NET Core Identity.
Stars: ✭ 26 (+0%)
Mutual labels:  aspnetcore, netcore
Revo
Event Sourcing, CQRS and DDD framework for C#/.NET Core.
Stars: ✭ 162 (+523.08%)
Mutual labels:  aspnetcore, netcore
Ark.Tools
Ark set of helper libraries
Stars: ✭ 20 (-23.08%)
Mutual labels:  aspnetcore, netcore
Simplcommerce
A simple, cross platform, modularized ecommerce system built on .NET Core
Stars: ✭ 3,474 (+13261.54%)
Mutual labels:  aspnetcore, netcore
SignalR-Core-SqlTableDependency
Shows how the new SignalR Core works with hubs and sockets, also how it can integrate with SqlTableDependency API.
Stars: ✭ 36 (+38.46%)
Mutual labels:  aspnetcore, netcore
Bing.netcore
Bing是基于 .net core 2.0 的框架,旨在提升团队的开发输出能力,由常用公共操作类(工具类、帮助类)、分层架构基类,第三方组件封装,第三方业务接口封装等组成。
Stars: ✭ 758 (+2815.38%)
Mutual labels:  aspnetcore, netcore
Awesome-Nuget-Packages
📦 A collection of awesome and top .NET packages sorted by most popular needs.
Stars: ✭ 87 (+234.62%)
Mutual labels:  aspnetcore, netcore
mssql-restapi
A simple REST API for SQL Server, Azure SQL DB and Azure SQL DW using SMO on .NET Core 2.0
Stars: ✭ 33 (+26.92%)
Mutual labels:  aspnetcore, netcore
Module Shop Mini Program
一个基于 .NET Core构建的简单、跨平台、模块化的商城系统
Stars: ✭ 89 (+242.31%)
Mutual labels:  aspnetcore, netcore
Formhelper
ASP.NET Core - Transform server-side validations to client-side without writing any javascript code. (Compatible with Fluent Validation)
Stars: ✭ 155 (+496.15%)
Mutual labels:  aspnetcore, netcore

SharpPlugs

.Net Core 鋒利扩展
中文文档

Status

This project is in very early preview stage and it's not suggested to use it in a real project.

Build status NuGet NuGet

Current Features

  • DI
  • AutoMapper
  • ElasticSearch
  • WebAPiRoute
  • EntityFramework Repoistory

Get Started

First of all need to have a core project at asp.net Core, Here I've created a asp.net core MVC project

asp.net core Project

Now, install SharpPlugs Core packages

dotnet add package SharpPlug.Core

AddSharpPlugCore during Startup

 services.AddSharpPlugCore(opt=>{
      opt.DiAssembly.Add(Assembly.GetExecutingAssembly());
 });

asp.net core Project

Now we have the function of the dependency injection, I create a TestService classes with TestService interface

Automatic dependency injection is a naming rules, ends in Service or Repository is automatically injected by default

public class TestService : ITestService,IScopedDependency
{

    public string Hello()
    {
         return "Hello World";
    }
}

In the injected ITestService HomeController

public class HomeController : Controller
{
    private readonly ITestService _testService;
    public  HomeController(ITestService testService)
    {
        _testService = testService;
    }
    public IActionResult Index()
    {
        return View();
    }

    public IActionResult Hello()
    {
        return Json(_testService.Hello())   ;
    }
       
}

Now press F5 to debug,In your browser's address bar input /home/Hello,The request will be stay in the breakpoint

asp.net core Project

Now we press F5 to let it continue to run , We will see the Hello World output

asp.net core Project

Want to know more usage?Please see the advanced document

Nuget Packages

SharpPlugs is distributed as nuget packages.

Package Status
SharpPlug.Core NuGet version
SharpPlug.ElasticSearch NuGet version
SharpPlug.AutoMapper NuGet version
SharpPlug.WebApi NuGet version
SharpPlug.EntityFrameworkCore NuGet version
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].