We are pulling a default value from the URL using:
Globals.HttpContext?.Request.Query["TaxMap"].ToString() ?? ""
However, it appears this default option is being generated in the Entity code as a quoted string instead of C# code.
Ex.
[Database("DB")]
[Table("Parcels")]
public class Parcel : Entity
{
<other code removed to shorten>
[Column("TaxMap")]
public string? TaxMap { get; set; } = "Globals.HttpContext?.Request.Query[\"TaxMap\"].ToString() ?? \"\"";
It seemed that the generator cannot identify the supplied default values and handle it as string.
Better remove it and use the Row_Rendering server event to set the default value.
Interesting. We get the pop-up about making sure strings are double quoted so I presumed the generator didn't try to figure out the type.
Guessing I would post it to the feature requests, but could there be an advanced option to enable "strict" handling of default values where it doesn't try to identify/process the value? (IE if we want a string we need to double quote it)