mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-18 14:27:47 +08:00
9313e9f1f8
Added Linq2DB benchmarks
28 lines
921 B
C#
28 lines
921 B
C#
using System;
|
|
using Soma.Core;
|
|
|
|
namespace Dapper.Tests.Performance
|
|
{
|
|
[ServiceStack.DataAnnotations.Alias("Posts")]
|
|
[Table(Name = "Posts")]
|
|
[LinqToDB.Mapping.Table(Name = "Posts")]
|
|
public class Post
|
|
{
|
|
[Id(IdKind.Identity)]
|
|
[LinqToDB.Mapping.PrimaryKey, LinqToDB.Mapping.Identity]
|
|
public int Id { get; set; }
|
|
public string Text { get; set; }
|
|
public DateTime CreationDate { get; set; }
|
|
public DateTime LastChangeDate { get; set; }
|
|
public int? Counter1 { get; set; }
|
|
public int? Counter2 { get; set; }
|
|
public int? Counter3 { get; set; }
|
|
public int? Counter4 { get; set; }
|
|
public int? Counter5 { get; set; }
|
|
public int? Counter6 { get; set; }
|
|
public int? Counter7 { get; set; }
|
|
public int? Counter8 { get; set; }
|
|
public int? Counter9 { get; set; }
|
|
}
|
|
}
|