The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

20180930040544_InitialIdentityServerConfigurationDbMigration.Designer.cs 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. // <auto-generated />
  2. using System;
  3. using IdentityServer4.EntityFramework.DbContexts;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Migrations;
  8. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  9. namespace Teknik.IdentityServer.Data.Migrations.IdentityServer.ConfigurationDb
  10. {
  11. [DbContext(typeof(ConfigurationDbContext))]
  12. [Migration("20180930040544_InitialIdentityServerConfigurationDbMigration")]
  13. partial class InitialIdentityServerConfigurationDbMigration
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("ProductVersion", "2.2.0-preview2-35157")
  20. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  21. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  22. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResource", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd()
  26. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  27. b.Property<DateTime>("Created");
  28. b.Property<string>("Description")
  29. .HasMaxLength(1000);
  30. b.Property<string>("DisplayName")
  31. .HasMaxLength(200);
  32. b.Property<bool>("Enabled");
  33. b.Property<DateTime?>("LastAccessed");
  34. b.Property<string>("Name")
  35. .IsRequired()
  36. .HasMaxLength(200);
  37. b.Property<DateTime?>("Updated");
  38. b.HasKey("Id");
  39. b.HasIndex("Name")
  40. .IsUnique();
  41. b.ToTable("ApiResources");
  42. });
  43. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
  44. {
  45. b.Property<int>("Id")
  46. .ValueGeneratedOnAdd()
  47. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  48. b.Property<int>("ApiResourceId");
  49. b.Property<string>("Type")
  50. .IsRequired()
  51. .HasMaxLength(200);
  52. b.HasKey("Id");
  53. b.HasIndex("ApiResourceId");
  54. b.ToTable("ApiClaims");
  55. });
  56. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
  57. {
  58. b.Property<int>("Id")
  59. .ValueGeneratedOnAdd()
  60. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  61. b.Property<int>("ApiResourceId");
  62. b.Property<string>("Key")
  63. .IsRequired()
  64. .HasMaxLength(250);
  65. b.Property<string>("Value")
  66. .IsRequired()
  67. .HasMaxLength(2000);
  68. b.HasKey("Id");
  69. b.HasIndex("ApiResourceId");
  70. b.ToTable("ApiProperties");
  71. });
  72. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
  73. {
  74. b.Property<int>("Id")
  75. .ValueGeneratedOnAdd()
  76. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  77. b.Property<int>("ApiResourceId");
  78. b.Property<string>("Description")
  79. .HasMaxLength(1000);
  80. b.Property<string>("DisplayName")
  81. .HasMaxLength(200);
  82. b.Property<bool>("Emphasize");
  83. b.Property<string>("Name")
  84. .IsRequired()
  85. .HasMaxLength(200);
  86. b.Property<bool>("Required");
  87. b.Property<bool>("ShowInDiscoveryDocument");
  88. b.HasKey("Id");
  89. b.HasIndex("ApiResourceId");
  90. b.HasIndex("Name")
  91. .IsUnique();
  92. b.ToTable("ApiScopes");
  93. });
  94. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
  95. {
  96. b.Property<int>("Id")
  97. .ValueGeneratedOnAdd()
  98. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  99. b.Property<int>("ApiScopeId");
  100. b.Property<string>("Type")
  101. .IsRequired()
  102. .HasMaxLength(200);
  103. b.HasKey("Id");
  104. b.HasIndex("ApiScopeId");
  105. b.ToTable("ApiScopeClaims");
  106. });
  107. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiSecret", b =>
  108. {
  109. b.Property<int>("Id")
  110. .ValueGeneratedOnAdd()
  111. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  112. b.Property<int>("ApiResourceId");
  113. b.Property<DateTime>("Created");
  114. b.Property<string>("Description")
  115. .HasMaxLength(1000);
  116. b.Property<DateTime?>("Expiration");
  117. b.Property<string>("Type")
  118. .IsRequired()
  119. .HasMaxLength(250);
  120. b.Property<string>("Value")
  121. .IsRequired()
  122. .HasMaxLength(4000);
  123. b.HasKey("Id");
  124. b.HasIndex("ApiResourceId");
  125. b.ToTable("ApiSecrets");
  126. });
  127. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.Client", b =>
  128. {
  129. b.Property<int>("Id")
  130. .ValueGeneratedOnAdd()
  131. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  132. b.Property<int>("AbsoluteRefreshTokenLifetime");
  133. b.Property<int>("AccessTokenLifetime");
  134. b.Property<int>("AccessTokenType");
  135. b.Property<bool>("AllowAccessTokensViaBrowser");
  136. b.Property<bool>("AllowOfflineAccess");
  137. b.Property<bool>("AllowPlainTextPkce");
  138. b.Property<bool>("AllowRememberConsent");
  139. b.Property<bool>("AlwaysIncludeUserClaimsInIdToken");
  140. b.Property<bool>("AlwaysSendClientClaims");
  141. b.Property<int>("AuthorizationCodeLifetime");
  142. b.Property<bool>("BackChannelLogoutSessionRequired");
  143. b.Property<string>("BackChannelLogoutUri")
  144. .HasMaxLength(2000);
  145. b.Property<string>("ClientClaimsPrefix")
  146. .HasMaxLength(200);
  147. b.Property<string>("ClientId")
  148. .IsRequired()
  149. .HasMaxLength(200);
  150. b.Property<string>("ClientName")
  151. .HasMaxLength(200);
  152. b.Property<string>("ClientUri")
  153. .HasMaxLength(2000);
  154. b.Property<int?>("ConsentLifetime");
  155. b.Property<DateTime>("Created");
  156. b.Property<string>("Description")
  157. .HasMaxLength(1000);
  158. b.Property<bool>("EnableLocalLogin");
  159. b.Property<bool>("Enabled");
  160. b.Property<bool>("FrontChannelLogoutSessionRequired");
  161. b.Property<string>("FrontChannelLogoutUri")
  162. .HasMaxLength(2000);
  163. b.Property<int>("IdentityTokenLifetime");
  164. b.Property<bool>("IncludeJwtId");
  165. b.Property<DateTime?>("LastAccessed");
  166. b.Property<string>("LogoUri")
  167. .HasMaxLength(2000);
  168. b.Property<string>("PairWiseSubjectSalt")
  169. .HasMaxLength(200);
  170. b.Property<string>("ProtocolType")
  171. .IsRequired()
  172. .HasMaxLength(200);
  173. b.Property<int>("RefreshTokenExpiration");
  174. b.Property<int>("RefreshTokenUsage");
  175. b.Property<bool>("RequireClientSecret");
  176. b.Property<bool>("RequireConsent");
  177. b.Property<bool>("RequirePkce");
  178. b.Property<int>("SlidingRefreshTokenLifetime");
  179. b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
  180. b.Property<DateTime?>("Updated");
  181. b.HasKey("Id");
  182. b.HasIndex("ClientId")
  183. .IsUnique();
  184. b.ToTable("Clients");
  185. });
  186. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
  187. {
  188. b.Property<int>("Id")
  189. .ValueGeneratedOnAdd()
  190. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  191. b.Property<int>("ClientId");
  192. b.Property<string>("Type")
  193. .IsRequired()
  194. .HasMaxLength(250);
  195. b.Property<string>("Value")
  196. .IsRequired()
  197. .HasMaxLength(250);
  198. b.HasKey("Id");
  199. b.HasIndex("ClientId");
  200. b.ToTable("ClientClaims");
  201. });
  202. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
  203. {
  204. b.Property<int>("Id")
  205. .ValueGeneratedOnAdd()
  206. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  207. b.Property<int>("ClientId");
  208. b.Property<string>("Origin")
  209. .IsRequired()
  210. .HasMaxLength(150);
  211. b.HasKey("Id");
  212. b.HasIndex("ClientId");
  213. b.ToTable("ClientCorsOrigins");
  214. });
  215. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
  216. {
  217. b.Property<int>("Id")
  218. .ValueGeneratedOnAdd()
  219. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  220. b.Property<int>("ClientId");
  221. b.Property<string>("GrantType")
  222. .IsRequired()
  223. .HasMaxLength(250);
  224. b.HasKey("Id");
  225. b.HasIndex("ClientId");
  226. b.ToTable("ClientGrantTypes");
  227. });
  228. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
  229. {
  230. b.Property<int>("Id")
  231. .ValueGeneratedOnAdd()
  232. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  233. b.Property<int>("ClientId");
  234. b.Property<string>("Provider")
  235. .IsRequired()
  236. .HasMaxLength(200);
  237. b.HasKey("Id");
  238. b.HasIndex("ClientId");
  239. b.ToTable("ClientIdPRestrictions");
  240. });
  241. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
  242. {
  243. b.Property<int>("Id")
  244. .ValueGeneratedOnAdd()
  245. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  246. b.Property<int>("ClientId");
  247. b.Property<string>("PostLogoutRedirectUri")
  248. .IsRequired()
  249. .HasMaxLength(2000);
  250. b.HasKey("Id");
  251. b.HasIndex("ClientId");
  252. b.ToTable("ClientPostLogoutRedirectUris");
  253. });
  254. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
  255. {
  256. b.Property<int>("Id")
  257. .ValueGeneratedOnAdd()
  258. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  259. b.Property<int>("ClientId");
  260. b.Property<string>("Key")
  261. .IsRequired()
  262. .HasMaxLength(250);
  263. b.Property<string>("Value")
  264. .IsRequired()
  265. .HasMaxLength(2000);
  266. b.HasKey("Id");
  267. b.HasIndex("ClientId");
  268. b.ToTable("ClientProperties");
  269. });
  270. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
  271. {
  272. b.Property<int>("Id")
  273. .ValueGeneratedOnAdd()
  274. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  275. b.Property<int>("ClientId");
  276. b.Property<string>("RedirectUri")
  277. .IsRequired()
  278. .HasMaxLength(2000);
  279. b.HasKey("Id");
  280. b.HasIndex("ClientId");
  281. b.ToTable("ClientRedirectUris");
  282. });
  283. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
  284. {
  285. b.Property<int>("Id")
  286. .ValueGeneratedOnAdd()
  287. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  288. b.Property<int>("ClientId");
  289. b.Property<string>("Scope")
  290. .IsRequired()
  291. .HasMaxLength(200);
  292. b.HasKey("Id");
  293. b.HasIndex("ClientId");
  294. b.ToTable("ClientScopes");
  295. });
  296. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
  297. {
  298. b.Property<int>("Id")
  299. .ValueGeneratedOnAdd()
  300. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  301. b.Property<int>("ClientId");
  302. b.Property<DateTime>("Created");
  303. b.Property<string>("Description")
  304. .HasMaxLength(2000);
  305. b.Property<DateTime?>("Expiration");
  306. b.Property<string>("Type")
  307. .IsRequired()
  308. .HasMaxLength(250);
  309. b.Property<string>("Value")
  310. .IsRequired()
  311. .HasMaxLength(4000);
  312. b.HasKey("Id");
  313. b.HasIndex("ClientId");
  314. b.ToTable("ClientSecrets");
  315. });
  316. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityClaim", b =>
  317. {
  318. b.Property<int>("Id")
  319. .ValueGeneratedOnAdd()
  320. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  321. b.Property<int>("IdentityResourceId");
  322. b.Property<string>("Type")
  323. .IsRequired()
  324. .HasMaxLength(200);
  325. b.HasKey("Id");
  326. b.HasIndex("IdentityResourceId");
  327. b.ToTable("IdentityClaims");
  328. });
  329. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResource", b =>
  330. {
  331. b.Property<int>("Id")
  332. .ValueGeneratedOnAdd()
  333. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  334. b.Property<DateTime>("Created");
  335. b.Property<string>("Description")
  336. .HasMaxLength(1000);
  337. b.Property<string>("DisplayName")
  338. .HasMaxLength(200);
  339. b.Property<bool>("Emphasize");
  340. b.Property<bool>("Enabled");
  341. b.Property<string>("Name")
  342. .IsRequired()
  343. .HasMaxLength(200);
  344. b.Property<bool>("Required");
  345. b.Property<bool>("ShowInDiscoveryDocument");
  346. b.Property<DateTime?>("Updated");
  347. b.HasKey("Id");
  348. b.HasIndex("Name")
  349. .IsUnique();
  350. b.ToTable("IdentityResources");
  351. });
  352. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
  353. {
  354. b.Property<int>("Id")
  355. .ValueGeneratedOnAdd()
  356. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  357. b.Property<int>("IdentityResourceId");
  358. b.Property<string>("Key")
  359. .IsRequired()
  360. .HasMaxLength(250);
  361. b.Property<string>("Value")
  362. .IsRequired()
  363. .HasMaxLength(2000);
  364. b.HasKey("Id");
  365. b.HasIndex("IdentityResourceId");
  366. b.ToTable("IdentityProperties");
  367. });
  368. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
  369. {
  370. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
  371. .WithMany("UserClaims")
  372. .HasForeignKey("ApiResourceId")
  373. .OnDelete(DeleteBehavior.Cascade);
  374. });
  375. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
  376. {
  377. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
  378. .WithMany("Properties")
  379. .HasForeignKey("ApiResourceId")
  380. .OnDelete(DeleteBehavior.Cascade);
  381. });
  382. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
  383. {
  384. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
  385. .WithMany("Scopes")
  386. .HasForeignKey("ApiResourceId")
  387. .OnDelete(DeleteBehavior.Cascade);
  388. });
  389. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
  390. {
  391. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "ApiScope")
  392. .WithMany("UserClaims")
  393. .HasForeignKey("ApiScopeId")
  394. .OnDelete(DeleteBehavior.Cascade);
  395. });
  396. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiSecret", b =>
  397. {
  398. b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
  399. .WithMany("Secrets")
  400. .HasForeignKey("ApiResourceId")
  401. .OnDelete(DeleteBehavior.Cascade);
  402. });
  403. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
  404. {
  405. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  406. .WithMany("Claims")
  407. .HasForeignKey("ClientId")
  408. .OnDelete(DeleteBehavior.Cascade);
  409. });
  410. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
  411. {
  412. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  413. .WithMany("AllowedCorsOrigins")
  414. .HasForeignKey("ClientId")
  415. .OnDelete(DeleteBehavior.Cascade);
  416. });
  417. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
  418. {
  419. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  420. .WithMany("AllowedGrantTypes")
  421. .HasForeignKey("ClientId")
  422. .OnDelete(DeleteBehavior.Cascade);
  423. });
  424. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
  425. {
  426. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  427. .WithMany("IdentityProviderRestrictions")
  428. .HasForeignKey("ClientId")
  429. .OnDelete(DeleteBehavior.Cascade);
  430. });
  431. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
  432. {
  433. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  434. .WithMany("PostLogoutRedirectUris")
  435. .HasForeignKey("ClientId")
  436. .OnDelete(DeleteBehavior.Cascade);
  437. });
  438. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
  439. {
  440. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  441. .WithMany("Properties")
  442. .HasForeignKey("ClientId")
  443. .OnDelete(DeleteBehavior.Cascade);
  444. });
  445. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
  446. {
  447. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  448. .WithMany("RedirectUris")
  449. .HasForeignKey("ClientId")
  450. .OnDelete(DeleteBehavior.Cascade);
  451. });
  452. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
  453. {
  454. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  455. .WithMany("AllowedScopes")
  456. .HasForeignKey("ClientId")
  457. .OnDelete(DeleteBehavior.Cascade);
  458. });
  459. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
  460. {
  461. b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
  462. .WithMany("ClientSecrets")
  463. .HasForeignKey("ClientId")
  464. .OnDelete(DeleteBehavior.Cascade);
  465. });
  466. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityClaim", b =>
  467. {
  468. b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
  469. .WithMany("UserClaims")
  470. .HasForeignKey("IdentityResourceId")
  471. .OnDelete(DeleteBehavior.Cascade);
  472. });
  473. modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
  474. {
  475. b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
  476. .WithMany("Properties")
  477. .HasForeignKey("IdentityResourceId")
  478. .OnDelete(DeleteBehavior.Cascade);
  479. });
  480. #pragma warning restore 612, 618
  481. }
  482. }
  483. }