33 lines
754 B
C#
33 lines
754 B
C#
using Dapper;
|
|
using NetCore.Model.enums;
|
|
using NetCore.Model.qw;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
|
|
namespace NetCore.BLL
|
|
{
|
|
public class ww_corp_bll
|
|
{
|
|
private string comcode;
|
|
public ww_corp_bll(string _comcode)
|
|
{
|
|
comcode = _comcode;
|
|
}
|
|
/// <summary>
|
|
/// 获取所有企业数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public List<ww_corp> GetList()
|
|
{
|
|
using (IDbConnection con = ConnectionFactory.CreateConnection(ContextType.qwContext, comcode, false))
|
|
{
|
|
return con.Query<ww_corp>("select * from ww_corp", null, buffered: false).ToList();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|