SqlSugar/Src/Asp.Net/SqlServerTest/Demos/G_Mapper.cs
2019-01-10 13:50:19 +08:00

30 lines
508 B
C#

using OrmTest.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OrmTest.Demo
{
public class Mapper : DemoBase
{
public static void Init()
{
var db = GetInstance();
var x = db.Queryable<Student>()
.Mapper((it, cache) =>
{
it.Name = "xx";
}).ToListAsync();
x .Wait();
}
}
}