mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Update mongodb
This commit is contained in:
@@ -12,4 +12,19 @@ namespace SqlSugar.MongoDb
|
||||
[SugarColumn(IsPrimaryKey =true,IsOnlyIgnoreInsert =true,ColumnName ="_id")]
|
||||
public string Id { get; set; }
|
||||
}
|
||||
public class MongoDbBaseLong
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true, ColumnName = "_id")]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
public class MongoDbBaseString
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true, ColumnName = "_id")]
|
||||
public string Id { get; set; }
|
||||
}
|
||||
public class MongoDbBaseGuid
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true, ColumnName = "_id")]
|
||||
public Guid Id { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user