Creating a new entity

  • Goto the NorthwindBase project
  • To the "Models" namespace
  • Add a new item using the "Entity" template and call it "Students"
  • See that it inherits from "Entity" base class
  • Review the parameters used to call the base constructor (name in db, caption, data provider)
  • Change the datasource to: Shared.Datasources.Northwind1
using System;
using System.Collections.Generic;
using System.Text;
using Firefly.Box;
using ENV.Data;

namespace Northwind.Models
{
    public class Students : Entity
    {
        public Students()
            : base("Students", Northwind.Shared.DataSources.Northwind1)
        {
        }
    }
} 

Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com