22 lines
425 B
C#
22 lines
425 B
C#
using FreeSql;
|
|
using MAX.Core.DependencyInjection;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using StoreHub.Framework.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace StoreHub.Framework.Repositorys
|
|
{
|
|
|
|
public class SqlRepository : IScopedDependency
|
|
{
|
|
public IAdo Ado { get; }
|
|
public SqlRepository([FromKeyedServices("KJDDB")] IFreeSql fsql)
|
|
{
|
|
Ado = fsql.Ado;
|
|
}
|
|
}
|
|
|
|
}
|