Wiki

Clone wiki

Bootproject.Core / Modelling

FluentnHibernate built in.

The IEntity exist in Bootproject.Multitenancy.Domain.

How create a new Model that will be replicated in database? Every class that inherits the IEntity will automatically be created in your database where you can access it directly when its created.

Example

Page class

#!c#

    public class Page : IEntity
    {
        public virtual string Id { get; set; }
        public virtual string Title { get; set; }
        public virtual string Url { get; set; }
    }

To access the "Page", use the extension Boot.Multitenancy.Extensions

#!c#

var host = Host.Open();
var pages = host.All<Page>();

That will return a list of all pages. From now on its just regular Linq.

Happy programming!!

Updated