I'm new to orchard and am following http://skywalkersoftwaredevelopment.net tutorials.
ContentDefinitionManager.AlterPartDefinition(typeof(AddressPart).Name, p => p
.Attachable(false)
.WithField("Name", f => f.OfType(typeof(TextField).Name))
.WithField("AddressLine1", f => f.OfType(typeof(TextField).Name))
.WithField("AddressLine2", f => f.OfType(typeof(TextField).Name))
.WithField("Zipcode", f => f.OfType(typeof(TextField).Name))
.WithField("City", f => f.OfType(typeof(TextField).Name))
.WithField("Country", f => f.OfType(typeof(TextField).Name))
);
SchemaBuilder.CreateTable("AddressRecord", t => t
.ContentPartRecord()
.Column<int>("CustomerId")
.Column<string>("Type", c => c.WithLength(50))
);
what does withfield really function in this case? why no createtable stuff to create real table field for addressrecord table ?
where are these "Name", "addressline1" supposed to be saved in database?
Thanks for your reading.