Initial version
This commit is contained in:
parent
33fbb36fb8
commit
dc23c79797
|
@ -20,13 +20,11 @@ namespace BlueWest.EfMethods.Sources
|
||||||
.WriteLine($"namespace {RootNamespace}")
|
.WriteLine($"namespace {RootNamespace}")
|
||||||
.WriteOpeningBracket();
|
.WriteOpeningBracket();
|
||||||
|
|
||||||
if (options.GenerateXmlDocument)
|
|
||||||
{
|
|
||||||
builder
|
builder
|
||||||
.WriteLine("/// <summary>")
|
.WriteLine("/// <summary>")
|
||||||
.WriteLine("/// Attribute for generating a function to get one EF entity with a predicate as argument and a return type for the projection.")
|
.WriteLine("/// Attribute for generating a function to get many entities.")
|
||||||
.WriteLine("/// </summary>");
|
.WriteLine("/// </summary>");
|
||||||
}
|
|
||||||
|
|
||||||
builder
|
builder
|
||||||
.WriteLine("[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]")
|
.WriteLine("[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]")
|
||||||
|
|
|
@ -20,14 +20,10 @@ namespace BlueWest.EfMethods.Sources
|
||||||
.WriteLine($"namespace {RootNamespace}")
|
.WriteLine($"namespace {RootNamespace}")
|
||||||
.WriteOpeningBracket();
|
.WriteOpeningBracket();
|
||||||
|
|
||||||
if (options.GenerateXmlDocument)
|
|
||||||
{
|
|
||||||
builder
|
builder
|
||||||
.WriteLine("/// <summary>")
|
.WriteLine("/// <summary>")
|
||||||
.WriteLine("/// Generate Add methods for interacting with the entity")
|
.WriteLine("/// Generate Get One Entity helper functions with the specified nameof of the property, and the return type.")
|
||||||
.WriteLine("/// </summary>");
|
.WriteLine("/// </summary>");
|
||||||
}
|
|
||||||
|
|
||||||
builder
|
builder
|
||||||
.WriteLine("[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]")
|
.WriteLine("[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]")
|
||||||
.WriteLine($"public sealed class {AttributeName}Attribute : Attribute")
|
.WriteLine($"public sealed class {AttributeName}Attribute : Attribute")
|
||||||
|
|
|
@ -17,13 +17,10 @@ namespace BlueWest.EfMethods.Sources
|
||||||
.WriteLine($"namespace {RootNamespace}")
|
.WriteLine($"namespace {RootNamespace}")
|
||||||
.WriteOpeningBracket();
|
.WriteOpeningBracket();
|
||||||
|
|
||||||
if (options.GenerateXmlDocument)
|
|
||||||
{
|
|
||||||
builder
|
builder
|
||||||
.WriteLine("/// <summary>")
|
.WriteLine("/// <summary>")
|
||||||
.WriteLine("/// Generate Add methods for interacting with the entity")
|
.WriteLine("/// Generate update methods for this Db<Set> property")
|
||||||
.WriteLine("/// </summary>");
|
.WriteLine("/// </summary>");
|
||||||
}
|
|
||||||
|
|
||||||
builder
|
builder
|
||||||
.WriteLine("[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]")
|
.WriteLine("[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]")
|
||||||
|
@ -31,9 +28,7 @@ namespace BlueWest.EfMethods.Sources
|
||||||
.WriteOpeningBracket();
|
.WriteOpeningBracket();
|
||||||
|
|
||||||
builder
|
builder
|
||||||
.WriteLine($"public {AttributeName}Attribute(Type updateType, Type returnType, string keyPropertyMemberName)")
|
.WriteLine($"public {AttributeName}Attribute(Type updateType, Type returnType, string keyPropertyMemberName){"{}"}")
|
||||||
.WriteOpeningBracket()
|
|
||||||
.WriteClosingBracket()
|
|
||||||
.WriteLine();
|
.WriteLine();
|
||||||
|
|
||||||
builder
|
builder
|
||||||
|
|
|
@ -20,13 +20,10 @@ namespace BlueWest.EfMethods.Sources
|
||||||
.WriteLine($"namespace {RootNamespace}")
|
.WriteLine($"namespace {RootNamespace}")
|
||||||
.WriteOpeningBracket();
|
.WriteOpeningBracket();
|
||||||
|
|
||||||
if (options.GenerateXmlDocument)
|
|
||||||
{
|
|
||||||
builder
|
builder
|
||||||
.WriteLine("/// <summary>")
|
.WriteLine("/// <summary>")
|
||||||
.WriteLine("/// Attribute for generating a function to get one EF entity with a predicate as argument and a return type for the projection.")
|
.WriteLine("/// Generate methods to get the first result with a given predicate.")
|
||||||
.WriteLine("/// </summary>");
|
.WriteLine("/// </summary>");
|
||||||
}
|
|
||||||
|
|
||||||
builder
|
builder
|
||||||
.WriteLine("[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]")
|
.WriteLine("[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]")
|
||||||
|
|
Loading…
Reference in New Issue