Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
IoTSharp
IoTSharp
提交
9dea36c9
IoTSharp
项目概览
IoTSharp
/
IoTSharp
11 个月 前同步成功
通知
15
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
IoTSharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9dea36c9
编写于
2月 09, 2022
作者:
W
wq1234wq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
移除订阅任务多余的属性
上级
b6a9df2a
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
22 addition
and
846 deletion
+22
-846
IoTSharp.Data.MySQL/Migrations/20220208151552_addtelantinfo.cs
...arp.Data.MySQL/Migrations/20220208151552_addtelantinfo.cs
+0
-786
IoTSharp.Data.MySQL/Migrations/20220209043947_addtelantinfo.Designer.cs
...MySQL/Migrations/20220209043947_addtelantinfo.Designer.cs
+1
-27
IoTSharp.Data.MySQL/Migrations/20220209043947_addtelantinfo.cs
...arp.Data.MySQL/Migrations/20220209043947_addtelantinfo.cs
+19
-0
IoTSharp.Data.MySQL/Migrations/ApplicationDbContextModelSnapshot.cs
...ata.MySQL/Migrations/ApplicationDbContextModelSnapshot.cs
+0
-26
IoTSharp.Data/DeviceRule.cs
IoTSharp.Data/DeviceRule.cs
+1
-2
IoTSharp.Data/SubscriptionTask.cs
IoTSharp.Data/SubscriptionTask.cs
+1
-5
未找到文件。
IoTSharp.Data.MySQL/Migrations/20220208151552_addtelantinfo.cs
已删除
100644 → 0
浏览文件 @
b6a9df2a
此差异已折叠。
点击以展开。
IoTSharp.Data.MySQL/Migrations/2022020
8151552
_addtelantinfo.Designer.cs
→
IoTSharp.Data.MySQL/Migrations/2022020
9043947
_addtelantinfo.Designer.cs
浏览文件 @
9dea36c9
...
...
@@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace
IoTSharp.Data.MySql.Migrations
{
[
DbContext
(
typeof
(
ApplicationDbContext
))]
[
Migration
(
"2022020
8151552
_addtelantinfo"
)]
[
Migration
(
"2022020
9043947
_addtelantinfo"
)]
partial
class
addtelantinfo
{
protected
override
void
BuildTargetModel
(
ModelBuilder
modelBuilder
)
...
...
@@ -1455,9 +1455,6 @@ namespace IoTSharp.Data.MySql.Migrations
.
ValueGeneratedOnAdd
()
.
HasColumnType
(
"char(36)"
);
b
.
Property
<
Guid
>(
"CustomerId"
)
.
HasColumnType
(
"char(36)"
);
b
.
Property
<
Guid
>(
"EventId"
)
.
HasColumnType
(
"char(36)"
);
...
...
@@ -1473,19 +1470,12 @@ namespace IoTSharp.Data.MySql.Migrations
b
.
Property
<
string
>(
"TaskConfig"
)
.
HasColumnType
(
"longtext"
);
b
.
Property
<
Guid
>(
"TenantId"
)
.
HasColumnType
(
"char(36)"
);
b
.
HasKey
(
"BindId"
);
b
.
HasIndex
(
"CustomerId"
);
b
.
HasIndex
(
"RuleTaskExecutorExecutorId"
);
b
.
HasIndex
(
"SubscriptionEventId"
);
b
.
HasIndex
(
"TenantId"
);
b
.
ToTable
(
"SubscriptionTasks"
);
});
...
...
@@ -2187,12 +2177,6 @@ namespace IoTSharp.Data.MySql.Migrations
modelBuilder
.
Entity
(
"IoTSharp.Data.SubscriptionTask"
,
b
=>
{
b
.
HasOne
(
"IoTSharp.Data.Customer"
,
"Customer"
)
.
WithMany
()
.
HasForeignKey
(
"CustomerId"
)
.
OnDelete
(
DeleteBehavior
.
Cascade
)
.
IsRequired
();
b
.
HasOne
(
"IoTSharp.Data.RuleTaskExecutor"
,
"RuleTaskExecutor"
)
.
WithMany
()
.
HasForeignKey
(
"RuleTaskExecutorExecutorId"
);
...
...
@@ -2201,19 +2185,9 @@ namespace IoTSharp.Data.MySql.Migrations
.
WithMany
()
.
HasForeignKey
(
"SubscriptionEventId"
);
b
.
HasOne
(
"IoTSharp.Data.Tenant"
,
"Tenant"
)
.
WithMany
()
.
HasForeignKey
(
"TenantId"
)
.
OnDelete
(
DeleteBehavior
.
Cascade
)
.
IsRequired
();
b
.
Navigation
(
"Customer"
);
b
.
Navigation
(
"RuleTaskExecutor"
);
b
.
Navigation
(
"Subscription"
);
b
.
Navigation
(
"Tenant"
);
});
modelBuilder
.
Entity
(
"Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>"
,
b
=>
...
...
IoTSharp.Data.MySQL/Migrations/20220209043947_addtelantinfo.cs
0 → 100644
浏览文件 @
9dea36c9
using
Microsoft.EntityFrameworkCore.Migrations
;
#
nullable
disable
namespace
IoTSharp.Data.MySql.Migrations
{
public
partial
class
addtelantinfo
:
Migration
{
protected
override
void
Up
(
MigrationBuilder
migrationBuilder
)
{
}
protected
override
void
Down
(
MigrationBuilder
migrationBuilder
)
{
}
}
}
IoTSharp.Data.MySQL/Migrations/ApplicationDbContextModelSnapshot.cs
浏览文件 @
9dea36c9
...
...
@@ -1453,9 +1453,6 @@ namespace IoTSharp.Data.MySql.Migrations
.
ValueGeneratedOnAdd
()
.
HasColumnType
(
"char(36)"
);
b
.
Property
<
Guid
>(
"CustomerId"
)
.
HasColumnType
(
"char(36)"
);
b
.
Property
<
Guid
>(
"EventId"
)
.
HasColumnType
(
"char(36)"
);
...
...
@@ -1471,19 +1468,12 @@ namespace IoTSharp.Data.MySql.Migrations
b
.
Property
<
string
>(
"TaskConfig"
)
.
HasColumnType
(
"longtext"
);
b
.
Property
<
Guid
>(
"TenantId"
)
.
HasColumnType
(
"char(36)"
);
b
.
HasKey
(
"BindId"
);
b
.
HasIndex
(
"CustomerId"
);
b
.
HasIndex
(
"RuleTaskExecutorExecutorId"
);
b
.
HasIndex
(
"SubscriptionEventId"
);
b
.
HasIndex
(
"TenantId"
);
b
.
ToTable
(
"SubscriptionTasks"
);
});
...
...
@@ -2185,12 +2175,6 @@ namespace IoTSharp.Data.MySql.Migrations
modelBuilder
.
Entity
(
"IoTSharp.Data.SubscriptionTask"
,
b
=>
{
b
.
HasOne
(
"IoTSharp.Data.Customer"
,
"Customer"
)
.
WithMany
()
.
HasForeignKey
(
"CustomerId"
)
.
OnDelete
(
DeleteBehavior
.
Cascade
)
.
IsRequired
();
b
.
HasOne
(
"IoTSharp.Data.RuleTaskExecutor"
,
"RuleTaskExecutor"
)
.
WithMany
()
.
HasForeignKey
(
"RuleTaskExecutorExecutorId"
);
...
...
@@ -2199,19 +2183,9 @@ namespace IoTSharp.Data.MySql.Migrations
.
WithMany
()
.
HasForeignKey
(
"SubscriptionEventId"
);
b
.
HasOne
(
"IoTSharp.Data.Tenant"
,
"Tenant"
)
.
WithMany
()
.
HasForeignKey
(
"TenantId"
)
.
OnDelete
(
DeleteBehavior
.
Cascade
)
.
IsRequired
();
b
.
Navigation
(
"Customer"
);
b
.
Navigation
(
"RuleTaskExecutor"
);
b
.
Navigation
(
"Subscription"
);
b
.
Navigation
(
"Tenant"
);
});
modelBuilder
.
Entity
(
"Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>"
,
b
=>
...
...
IoTSharp.Data/DeviceRule.cs
浏览文件 @
9dea36c9
...
...
@@ -24,7 +24,6 @@ namespace IoTSharp.Data
public
int
EnableTrace
{
get
;
set
;
}
//是否开启设备在规则链当中的链路跟踪
public
Guid
DeviceId
{
get
;
set
;
}
public
Guid
FlowRuleId
{
get
;
set
;
}
}
}
IoTSharp.Data/SubscriptionTask.cs
浏览文件 @
9dea36c9
...
...
@@ -20,10 +20,6 @@ namespace IoTSharp.Data
public
string
TaskConfig
{
get
;
set
;
}
public
Tenant
Tenant
{
get
;
set
;
}
public
Guid
TenantId
{
get
;
set
;
}
public
Guid
CustomerId
{
get
;
set
;
}
public
Customer
Customer
{
get
;
set
;
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录