Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Elements.Person = Builder.Add.Class(nameof(Elements.Person));

Elements.Person.Add.Property("FirstName", MetaType.Text);

...

  • What if an application wants to build a model that maps to an existing database schema?

  • That is, what if the table and column name are already defined in a legacy database, but the application would still like to map a model onto it?

  • Can the application define the model using a different naming scheme?

...

Code Block
Elements.Person = Builder.Add.Class(nameof(Elements.Person)).Table("tblPerson");
Elements.Person
  .Add
  .Property("FirstName", MetaType.Text)
  .Column("Vorname");

Instead of automatically calculating its own schema identifiers, Quino uses the ones assigned in the model.