mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 18:48:09 +08:00
Update mongodb
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using MongoDB.Bson;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
@@ -6,6 +8,7 @@ namespace SqlSugar.MongoDb
|
||||
{
|
||||
public class MongoDbBase
|
||||
{
|
||||
[BsonRepresentation(BsonType.ObjectId)]
|
||||
[SugarColumn(IsPrimaryKey =true,IsOnlyIgnoreInsert =true,ColumnName ="_id")]
|
||||
public string Id { get; set; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user