mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-04 12:47:57 +08:00
25 lines
598 B
C#
25 lines
598 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using OrmTest.Demo;
|
|
using OrmTest.Models;
|
|
|
|
namespace OrmTest.UnitTest
|
|
{
|
|
public class EnumTest : UnitTestBase
|
|
{
|
|
private EnumTest() { }
|
|
public EnumTest(int eachCount)
|
|
{
|
|
this.Count = eachCount;
|
|
}
|
|
public void Init()
|
|
{
|
|
|
|
var db = GetInstance();
|
|
var shoolValue = SchoolEnum.HarvardUniversity;
|
|
var list = db.Queryable<StudentEnum>().AS("student").Where(it => it.SchoolId == shoolValue).ToList();
|
|
}
|
|
}
|
|
} |