Expose entity fulltype name in EfGetMany
This commit is contained in:
parent
2cad97ac22
commit
2bc88bb91c
|
@ -57,7 +57,7 @@ namespace BlueWest.EfMethods
|
||||||
{
|
{
|
||||||
var returnTypeFullName = model.ReturnTypeFullName;
|
var returnTypeFullName = model.ReturnTypeFullName;
|
||||||
var entityTypeName = model.EntityTypeIdentifierName;
|
var entityTypeName = model.EntityTypeIdentifierName;
|
||||||
|
var entityFullTypeName = model.EntityTypeFullName;
|
||||||
var contextFullName = methodsModel.ContextFullType;
|
var contextFullName = methodsModel.ContextFullType;
|
||||||
var findEntityVarName = model.EntityTypeIdentifierName.ToCamelCase();
|
var findEntityVarName = model.EntityTypeIdentifierName.ToCamelCase();
|
||||||
var propertyName = model.PropertyName;
|
var propertyName = model.PropertyName;
|
||||||
|
@ -67,6 +67,8 @@ namespace BlueWest.EfMethods
|
||||||
var templateToSourceBuilder = new StringBuilder(addSourceTemplate);
|
var templateToSourceBuilder = new StringBuilder(addSourceTemplate);
|
||||||
templateToSourceBuilder
|
templateToSourceBuilder
|
||||||
.Replace("{returnTypeFullName}", returnTypeFullName)
|
.Replace("{returnTypeFullName}", returnTypeFullName)
|
||||||
|
.Replace("{entityFullTypeName}", entityFullTypeName)
|
||||||
|
|
||||||
.Replace("{entityTypeName}", entityTypeName)
|
.Replace("{entityTypeName}", entityTypeName)
|
||||||
.Replace("{contextFullName}", contextFullName)
|
.Replace("{contextFullName}", contextFullName)
|
||||||
.Replace("{contextFullName}", contextFullName)
|
.Replace("{contextFullName}", contextFullName)
|
||||||
|
|
|
@ -118,6 +118,11 @@ namespace BlueWest.EfMethods
|
||||||
public string ReturnTypeIdentifierName { get; set; }
|
public string ReturnTypeIdentifierName { get; set; }
|
||||||
public string ReturnTypeFullName { get; set; }
|
public string ReturnTypeFullName { get; set; }
|
||||||
|
|
||||||
|
public string MainTypeIdentifierName { get; set; }
|
||||||
|
public string MainTypeFullName { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public EfGetManyModel(EfEntityDataModel entity, string returnTypeFullName,
|
public EfGetManyModel(EfEntityDataModel entity, string returnTypeFullName,
|
||||||
string returnTypeIdentifierName) : base(entity.PropertyName, entity.EntityTypeFullName, entity.EntityTypeIdentifierName)
|
string returnTypeIdentifierName) : base(entity.PropertyName, entity.EntityTypeFullName, entity.EntityTypeIdentifierName)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue