4 ms·
The entity definition files are the data. Higher-order code is code that operates on code. I need a slightly more concrete example from you to get any more conc
by swolchok 17y ago
The entity definition files are the data. Higher-order code is code that operates on code. I need a slightly more concrete example from you to get any more concrete here, but I'm imagining that the C# code generator has a set of rules for mapping entities to 1) C# classes and 2) fields in a database, and the generated C# classes automatically do database queries upon method/attribute accesses. In Python, you might override attribute lookup on your "DatabaseObject" class to hit the database, or you could have some code that processes an entity definition file and adds appropriate functions to Python classes at runtime. The advantage is that you don't have reams of code to muddle through and compile.