mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-19 07:44:45 +08:00
16 lines
380 B
C#
16 lines
380 B
C#
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoDB.Bson;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace SqlSugar.MongoDb
|
|
{
|
|
public class MongoDbBase
|
|
{
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
[SugarColumn(IsPrimaryKey =true,IsOnlyIgnoreInsert =true,ColumnName ="_id")]
|
|
public string Id { get; set; }
|
|
}
|
|
}
|