Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(views): do not analyze Indexes or FKs on Views
- Loading branch information
Showing
16 changed files
with
112 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...ntityframeworkcore/test/entityframeworkcore2.validation.tests/Support/TableBasedEntity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using Microsoft.AspNetCore.Identity; | ||
|
||
namespace Aranasoft.Cobweb.EntityFrameworkCore.Validation.Tests.Support { | ||
public class TableBasedEntity { | ||
public int Id { get; set; } | ||
[MaxLength(256)] | ||
public string Field { get; set; } | ||
[Required] | ||
public IdentityRole<int> Role { get; set; } | ||
public ViewBasedEntity ViewEntity { get; set; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ameworkcore/test/entityframeworkcore2.validation.tests/Support/TableBasedEntityMapping.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
|
||
namespace Aranasoft.Cobweb.EntityFrameworkCore.Validation.Tests.Support { | ||
public class TableBasedEntityMapping : IEntityTypeConfiguration<TableBasedEntity> | ||
{ | ||
public void Configure(EntityTypeBuilder<TableBasedEntity> builder) { | ||
builder.Ignore(entity => entity.ViewEntity); | ||
} | ||
} | ||
} |
6 changes: 5 additions & 1 deletion
6
...entityframeworkcore/test/entityframeworkcore2.validation.tests/Support/ViewBasedEntity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using Microsoft.AspNetCore.Identity; | ||
|
||
namespace Aranasoft.Cobweb.EntityFrameworkCore.Validation.Tests.Support { | ||
public class ViewBasedEntity { | ||
public int Id { get; set; } | ||
[MaxLength(256)] | ||
public string Email { get; set; } | ||
public string Field { get; set; } | ||
public IdentityRole<int> Role { get; set; } | ||
public TableBasedEntity TableEntity { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ameworkcore/test/entityframeworkcore3.validation.tests/Support/TableBasedEntityMapping.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
|
||
namespace Aranasoft.Cobweb.EntityFrameworkCore.Validation.Tests.Support { | ||
public class TableBasedEntityMapping : IEntityTypeConfiguration<TableBasedEntity> | ||
{ | ||
public void Configure(EntityTypeBuilder<TableBasedEntity> builder) { | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters