listObjectFullTypeName wip
This commit is contained in:
parent
f24705ff95
commit
e5350b2ae8
|
@ -513,6 +513,8 @@ namespace BlueWest.EfMethods
|
|||
#pragma warning disable CS8629
|
||||
var keyFullTypeName = keyMemberType.Value.Type.ToDisplayString();
|
||||
#pragma warning restore CS8629
|
||||
|
||||
var listObjectFullTypeName = "";
|
||||
|
||||
|
||||
// Try grabbing string literal if there's no nameof in it
|
||||
|
@ -535,7 +537,7 @@ namespace BlueWest.EfMethods
|
|||
returnTypeFullName = efTypeofSymbols[0].ToDisplayString();
|
||||
}
|
||||
|
||||
return new EfGetListModel(entityDataModel, listPropertyName, keyPropertyName, keyFullTypeName, returnTypeIdentifierName, returnTypeFullName);
|
||||
return new EfGetListModel(entityDataModel, listPropertyName, listObjectFullTypeName,keyPropertyName, keyFullTypeName, returnTypeIdentifierName, returnTypeFullName);
|
||||
}
|
||||
|
||||
private EfAddToListModel ExtractEfAddToListMethodsModel(MemberDeclarationSyntax uProperty, SemanticModel semanticModel, EfEntityDataModel entityDataModel)
|
||||
|
|
|
@ -156,6 +156,10 @@ namespace BlueWest.EfMethods
|
|||
internal class EfGetListModel : EfEntityDataModel
|
||||
{
|
||||
public string ListPropertyName { get; set; }
|
||||
|
||||
public string ListObjectFullTypeName { get; set; }
|
||||
|
||||
|
||||
public string KeyPropertyName { get; set; }
|
||||
public string KeyFullTypeName { get; set; }
|
||||
public string ReturnTypeIdentifierName { get; set; }
|
||||
|
@ -165,6 +169,7 @@ namespace BlueWest.EfMethods
|
|||
public EfGetListModel(
|
||||
EfEntityDataModel entity,
|
||||
string listPropertyName,
|
||||
string listObjectFullTypeName,
|
||||
string keyPropertyName,
|
||||
string keyFullTypeName,
|
||||
string returnTypeIdentifierName,
|
||||
|
@ -172,6 +177,7 @@ namespace BlueWest.EfMethods
|
|||
: base(entity.PropertyName, entity.EntityTypeFullName, entity.EntityTypeIdentifierName)
|
||||
{
|
||||
ListPropertyName = listPropertyName;
|
||||
ListObjectFullTypeName = listObjectFullTypeName;
|
||||
KeyPropertyName = keyPropertyName;
|
||||
KeyFullTypeName = keyFullTypeName;
|
||||
ReturnTypeIdentifierName = returnTypeIdentifierName;
|
||||
|
|
Loading…
Reference in New Issue