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