Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Don Nehc 69 posts 222 karma points
    Sep 02, 2016 @ 16:47
    Don Nehc
    0

    IUmbracoEntity Question

    Hello,

    I created a new school type interface. Do I need to extend from IUmbracoEntity? Currently, I have:

    public class SchoolType : Entity, ISchoolType
    {
        //private int _parentId;
        private int _id;
        private string _name;
        ....
    }
    

    and:

    public interface ISchoolType : IUmbracoEntity
    {
    
    }
    

    But the problem I have is that I don't need some of the interfaces from IUmbracoEntity, like Level, Path, etc. Can I use IEntity instead?

    Best, -Don

Please Sign in or register to post replies

Write your reply to:

Draft