Skip to content

Commit

Permalink
also get base row type properties with BasedOnRow attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Jul 7, 2023
1 parent 2328343 commit 175c286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private TypeDefinition GetBasedOnRowAndAnnotations(TypeDefinition type,
basedOnByName = null;
if (basedOnRowAttr != null)
{
basedOnByName = basedOnRow.PropertiesOf().Where(x => TypingsUtils.IsPublicInstanceProperty(x))
basedOnByName = EnumerateProperties(basedOnRow).Where(x => TypingsUtils.IsPublicInstanceProperty(x))
.ToLookup(x => x.Name);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !ISSOURCEGENERATOR
#if !ISSOURCEGENERATOR
using Mono.Cecil;
using Mono.Cecil.Cil;
#endif
Expand Down Expand Up @@ -100,7 +100,7 @@ rowType is Microsoft.CodeAnalysis.INamedTypeSymbol rowTypeNT &&
rowType.FullNameOf() != "Serenity.Data.Row`1");
}

private static IEnumerable<PropertyDefinition> EnumerateProperties(TypeDefinition rowType)
public static IEnumerable<PropertyDefinition> EnumerateProperties(TypeDefinition rowType)
{
do
{
Expand Down

0 comments on commit 175c286

Please sign in to comment.