Skip to content
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
eee1169
FullStack takes any column's name: one named like a member it generat…
ejsmith Nov 26, 2026
36d79b1
LookupEnums and Csla warn whoever generates with CodeTemplate.Warning…
ejsmith Nov 26, 2026
98d0217
Legacy README: PLINQO's entity files can use today's C# and VB (=> me…
ejsmith Nov 26, 2026
199e687
Csla: a schema snapshot's web app is wired for the database it was ta…
ejsmith Nov 26, 2026
f23d4f8
Merge branch 'fix/codefileparser-modern-csharp' into fix/pending-2026…
ejsmith Nov 26, 2026
fbf6967
ModernEntities' EF Core templates (and FullStack's and Csla's copies)…
ejsmith Nov 26, 2026
887a5f8
ModernEntities' EF Core templates (and FullStack's and Csla's copies)…
ejsmith Nov 26, 2026
32a58d3
PLINQO's Entities.cst keeps each member of an entity's Metadata class…
ejsmith Nov 26, 2026
76427d9
PLINQO's Dbml.cst fills in the dbml's default values (Mode="Connectio…
ejsmith Nov 26, 2026
812e7a5
PLINQO-EF-DbContext's sample Petshop.csp no longer sets IgnoreList an…
ejsmith Nov 26, 2026
05a94c2
PLINQO: README.md describes the templates and the Metadata class (wha…
ejsmith Nov 26, 2026
f780a4f
FullStack's and Csla's labels come from one routine, NameWords.Label,…
ejsmith Nov 26, 2026
e0f9850
TableToClass's Records.cst and ModernEntities' (and FullStack's) Enti…
ejsmith Nov 26, 2026
08e58ce
FullStack takes a real schema: PostgreSQL arrays are lists, bit strin…
ejsmith Nov 26, 2026
97ee589
Csla takes a real database's schema: arrays are read-only lists CSLA'…
ejsmith Nov 26, 2026
3fc805e
DBDocumenter's title and server are the database's name and the serve…
ejsmith Nov 26, 2026
98c0379
ModernEntities' README says what the configurations map for each data…
ejsmith Nov 26, 2026
a184fc0
Merge branch 'fix/d4-csla' into fix/pending-2026-11-25
ejsmith Nov 26, 2026
34e7b5b
Merge branch 'fix/d4-fullstack' into fix/pending-2026-11-25
ejsmith Nov 26, 2026
bff214e
Merge branch 'fix/d4-plinqo' into fix/pending-2026-11-25
ejsmith Nov 26, 2026
0009ba3
FullStack README: a nullable column with a database default gets it o…
ejsmith Nov 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PLINQO's Entities.cst keeps each member of an entity's Metadata class…
… as written, not only its attributes: the attributes with the #if lines around them and the comments between them, and the declaration (?, init, required, =>, an initializer), at the class's indentation (CodeFileParser.GetSection with an indentation), so a #nullable enable file builds without new CS8618 warnings and a debug-only attribute stays debug-only; a new column's member is written as 8.x wrote it, an 8.x file comes out the same, and the WARNING comment is indented as the members are (8.x: one space more, which dotnet format changed back on every run)
  • Loading branch information
ejsmith committed Nov 26, 2026
commit 32a58d3056fd991204afba37217f695999ec83d7
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@
<%@ Map Name="CSharpAlias"
Src="System-CSharpAlias.csmap" Reverse="False"
Description="Convert system data types to c# alias" %>
<script runat="template">
// 9.0: a member of the file's Metadata class as written, at this class's indentation: its attributes (with the #if lines
// around them and the comments between them) and its declaration (?, init, required, an initializer), so a file with
// nullable annotations builds as it did. 8.x wrote its attributes and a declaration of its own.
public void WriteMemberAsWritten(ICSharpCode.NRefactory.Ast.PropertyDeclaration property)
{
ICSharpCode.NRefactory.Location start = property.Attributes.Count > 0
? property.Attributes[0].StartLocation
: new ICSharpCode.NRefactory.Location(1, property.StartLocation.Line);
ICSharpCode.NRefactory.Location end = property.BodyEnd.IsEmpty ? property.EndLocation : property.BodyEnd;
Response.WriteLine(ExistingFile.GetSection(start, end, " "));
Response.WriteLine();
}
</script>
using System;
using System.Linq;
using System.Data.Linq;
Expand All @@ -68,7 +82,7 @@ namespace <%= Database.EntityNamespace %>
internal class Metadata
<% } %>
{
// WARNING: Only attributes inside of this class will be preserved.
// WARNING: Only attributes inside of this class will be preserved.

<% AttributeSectionVisitor sourceAttributes = new AttributeSectionVisitor();
if(ExistingFile!=null)
Expand Down Expand Up @@ -100,10 +114,8 @@ namespace <%= Database.EntityNamespace %>

if(sourceAttributes.PropertyMap.ContainsKey(column.Member))
{
foreach (ICSharpCode.NRefactory.Ast.AttributeSection attributeSection in sourceAttributes.PropertyMap[column.Member].Attributes)
{ %>
<%= ExistingFile.GetSection(attributeSection.StartLocation, attributeSection.EndLocation) %>
<% } // for each attribute
WriteMemberAsWritten(sourceAttributes.PropertyMap[column.Member]);
continue;
} // if property
else
{
Expand Down Expand Up @@ -155,10 +167,8 @@ namespace <%= Database.EntityNamespace %>
{
if(sourceAttributes.PropertyMap.ContainsKey(association.Member))
{
foreach (ICSharpCode.NRefactory.Ast.AttributeSection attributeSection in sourceAttributes.PropertyMap[association.Member].Attributes)
{ %>
<%= ExistingFile.GetSection(attributeSection.StartLocation, attributeSection.EndLocation) %>
<% }
WriteMemberAsWritten(sourceAttributes.PropertyMap[association.Member]);
continue;
} %>
public <%= CSharpAlias[association.Type] %> <%=association.Member%> { get; set; }

Expand All @@ -168,10 +178,8 @@ namespace <%= Database.EntityNamespace %>
{
if(sourceAttributes.PropertyMap.ContainsKey(association.Member))
{
foreach (ICSharpCode.NRefactory.Ast.AttributeSection attributeSection in sourceAttributes.PropertyMap[association.Member].Attributes)
{ %>
<%= ExistingFile.GetSection(attributeSection.StartLocation, attributeSection.EndLocation) %>
<% }
WriteMemberAsWritten(sourceAttributes.PropertyMap[association.Member]);
continue;
} %>
public EntitySet<<%= CSharpAlias[association.Type] %>> <%=association.Member%> { get; set; }

Expand Down