mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +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.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
@ -6,10 +7,8 @@ using System.Text;
|
|||||||
namespace MongoDbTest
|
namespace MongoDbTest
|
||||||
{
|
{
|
||||||
[SqlSugar.SugarTable("OrderDetail")]
|
[SqlSugar.SugarTable("OrderDetail")]
|
||||||
public class OrderItem
|
public class OrderItem : MongoDbBase
|
||||||
{
|
{
|
||||||
[SqlSugar.SugarColumn(IsPrimaryKey =true, IsIdentity =true, ColumnName = "_Id")]
|
|
||||||
public int Id { get; set; }
|
|
||||||
public int OrderId { get; set; }
|
public int OrderId { get; set; }
|
||||||
public decimal? Price { get; set; }
|
public decimal? Price { get; set; }
|
||||||
[SqlSugar.SugarColumn(IsNullable = true)]
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
||||||
|
Loading…
Reference in New Issue
Block a user