Пример #1
0
 protected override void ConfigureModel(DapperMetadataBuilder <TimeTest> builder)
 {
     builder.HasKey(d => d.Id)
     .AutoGeneration(d => d.Id)
     .Ignore(d => d.Time)
     .TableName("time_test");
 }
Пример #2
0
 protected override void ConfigureModel(DapperMetadataBuilder <DapperAllTest> builder)
 {
     builder.HasKey(d => d.Id);
 }
Пример #3
0
 protected override void ConfigureModel(DapperMetadataBuilder <PushConfig> builder)
 {
     builder.TableName("push_config");
     builder.HasKey(s => new { s.Id });//主键
 }
Пример #4
0
 protected override void ConfigureModel(DapperMetadataBuilder <DapperTestEntity> builder)
 {
     builder.HasKey(d => d.id).TableName("dapper_all_test");
 }
Пример #5
0
 protected override void ConfigureModel(DapperMetadataBuilder <PushProcessHistory> builder)
 {
     builder.TableName("push_process_history");
     builder.HasKey(s => new { s.Id });//主键
 }
Пример #6
0
 protected override void ConfigureModel(DapperMetadataBuilder <DapperCompisiteKeyEntity> builder)
 {
     builder.HasKey(d => new { d.products_id, d.language_id }).TableName("dapper_compisite_key");
 }
Пример #7
0
 protected override void ConfigureModel(DapperMetadataBuilder <TestEntity> builder)
 {
     builder.HasKey(b => b.Id).AutoGeneration(b => b.Id).TableName("T1");
 }
Пример #8
0
 /// <summary>
 /// 模型配置
 /// </summary>
 /// <param name="builder"></param>
 protected override void ConfigureModel(DapperMetadataBuilder <MyTest> builder)
 {
     builder.SetTableName("mytest");
     builder.SetPrimaryKey(model => model.Id);
 }
Пример #9
0
 protected override void ConfigureModel(DapperMetadataBuilder <DapperEntityWithNoBool> builder)
 {
     builder.HasKey(d => d.id)
     .TableName("dapper_all_test")
     .DataSource("default");
 }
Пример #10
0
 protected override void ConfigureModel(DapperMetadataBuilder <PushTokenBrand> builder)
 {
     builder.TableName("push_token_brand");
     builder.HasKey(s => new { s.Id });//主键
 }
Пример #11
0
 protected override void ConfigureModel(DapperMetadataBuilder <PushSendProcess> builder)
 {
     builder.TableName("push_send_process");
     builder.HasKey(s => new { s.Id });//主键
 }
Пример #12
0
 protected override void ConfigureModel(DapperMetadataBuilder <PushAppChannel> builder)
 {
     builder.TableName("push_app_channel");
     builder.HasKey(s => new { s.Id });//主键
 }
Пример #13
0
 protected override void ConfigureModel(DapperMetadataBuilder <InfraDic> builder)
 {
     builder.TableName("infra_dic");
     builder.HasKey(s => new { s.Id });//主键
 }