base class inheritence

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
edowney
Posts: 14
Joined: Thu 07 Mar 2013 13:10

base class inheritence

Post by edowney » Tue 27 Aug 2013 12:44

I have a base class that all entities inherit from. It takes care of, among other things, the entities id field. How do I tell ED not worry about the id field? Right now I create a partial class that "sits" next to the ED generated class that includes the inheritance information, interfaces, etc. Can ED handle this without the additional partial class? Here's an example:

using System;
using System.Collections.Generic;
using Marinas.Infrastructure;

namespace Marinas.Domain
{
public partial class WebPage : BusinessBase<WebPage>, IWebPage, IAggregateRoot
{
partial void OnCreated()
{
DateEntered = DateTime.Now;
}

protected override void validate()
{
}
}

public interface IWebPage
{
}
}

Shalex
Site Admin
Posts: 8241
Joined: Thu 14 Aug 2008 12:44

Re: base class inheritence

Post by Shalex » Thu 29 Aug 2013 16:41

Please specify the ORM framework (Entity Framework/NHibernate/LinqConnect) you are working with.

Post Reply