mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update mongodb
This commit is contained in:
parent
4e55082721
commit
2a7b7b05e2
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SqlSugar.MongoDbCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@ -6,10 +7,8 @@ using System.Text;
|
||||
namespace MongoDbTest
|
||||
{
|
||||
[SqlSugar.SugarTable("OrderDetail")]
|
||||
public class OrderItem
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey =true, IsIdentity =true, ColumnName = "_Id")]
|
||||
public int Id { get; set; }
|
||||
public class OrderItem : MongoDbBase
|
||||
{
|
||||
public int OrderId { get; set; }
|
||||
public decimal? Price { get; set; }
|
||||
[SqlSugar.SugarColumn(IsNullable = true)]
|
||||
|
Loading…
Reference in New Issue
Block a user