Browse Source

Add unit test

pull/40/head
sunkaixuan 1 year ago
parent
commit
5ad04c7276
  1. 39
      Src/Asp.NetCore2/SqlSeverTest/UnitTest/Unitasf1/PRT_BMS_SA_WEBCON_DOC_V.cs
  2. 38
      Src/Asp.NetCore2/SqlSeverTest/UnitTest/Unitasf1/PRT_BMS_SA_WEBCON_DTL_VP.cs
  3. 2
      Src/Asp.NetCore2/SqlSeverTest/UnitTest/Unitrasdfa.cs

39
Src/Asp.NetCore2/SqlSeverTest/UnitTest/Unitasf1/PRT_BMS_SA_WEBCON_DOC_V.cs

@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public class PRT_BMS_SA_WEBCON_DOC_V
{
public PRT_BMS_SA_WEBCON_DOC_V()
{
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
public long SALESID { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string SACONNO { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? SADEPTID { get; set; }
}
}

38
Src/Asp.NetCore2/SqlSeverTest/UnitTest/Unitasf1/PRT_BMS_SA_WEBCON_DTL_VP.cs

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public class PRT_BMS_SA_WEBCON_DTL_VP
{
public PRT_BMS_SA_WEBCON_DTL_VP()
{
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? SALESID { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
public long SALESDTLID { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? SADEPTID { get; set; }
}
}

2
Src/Asp.NetCore2/SqlSeverTest/UnitTest/Unitrasdfa.cs

@ -17,6 +17,8 @@ namespace OrmTest
.ToSqlString();
var test =db.Queryable<PRT_BMS_SA_WEBCON_DOC_V>().Where(a => a.SALESID == (long)SqlFunc.Subqueryable<PRT_BMS_SA_WEBCON_DTL_VP>().GroupBy(z => z.SALESID).Select(z => z.SALESID)).Select(a => new { a.SALESID, a.SACONNO }).Clone()
.ToSqlString();
}
}
[SugarTable("FLOW_TEMPLATE")]

Loading…
Cancel
Save