mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-07 14:18:03 +08:00
30 lines
508 B
C#
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();
|
|
|
|
|
|
}
|
|
}
|
|
}
|