We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 819251c commit 3e6aa05Copy full SHA for 3e6aa05
FreeSql.DbContext/EfCoreFluentApi/EfCoreTableFluent`1.cs
@@ -340,11 +340,11 @@ public EfCoreTableFluent<T> HasData(IEnumerable<T> data)
340
var sdCopyLock = new object();
341
_fsql.Aop.SyncStructureAfter += new EventHandler<Aop.SyncStructureAfterEventArgs>((s, e) =>
342
{
343
+ if (e.Exception != null) return;
344
object[] sd = null;
345
lock (sdCopyLock)
346
sd = sdCopy?.ToArray();
347
if (sd == null || sd.Any() == false) return;
- if (e.Exception != null) return;
348
foreach (var et in e.EntityTypes)
349
350
if (et != typeof(T)) continue;
0 commit comments