修正项目
This commit is contained in:
28
NX.ERP.U8/Base/CustomerDAL.cs
Normal file
28
NX.ERP.U8/Base/CustomerDAL.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Dapper;
|
||||
using NX.ERP.Model;
|
||||
|
||||
namespace NX.ERP.U8
|
||||
{
|
||||
public class CustomerDAL
|
||||
{
|
||||
public IEnumerable<Customer> GetList()
|
||||
{
|
||||
|
||||
|
||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||
{
|
||||
var sql = @" select
|
||||
cCusCode AS CustomerCode,
|
||||
cCusName AS CustomerName,
|
||||
cCusPostCode AS PostalCode,
|
||||
cCusAddress AS Address,
|
||||
cCusPerson AS Contract,cCusPhone AS ContractPhone from Customer ";
|
||||
return conn.Query<Customer>(sql, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user