A definition for type was not found in Sterling database

Developer
Mar 29, 2011 at 2:49 PM

I hope this is a newbie mistake. I'm trying to save my class, AccountStatus, and I'm receiving the following error:

"A definition for type EveLight.Results.AccountStatus was not found in Sterling database EVE."

My class looks like this:

    public class AccountStatus:EVEResult
    {
        [XmlElement("userID")]
        public int UserID { get; set; }

        [XmlElement("paidUntil")]
        public string PaidUntil { get; set; }

        [XmlElement("createDate")]
        public string CreateDate { get; set; }

        [XmlElement("logonCount")]
        public int LogonCount { get; set; }

        [XmlElement("logonMinutes")]
        public long LogonMinutes { get; set; }

        public override System.Collections.Generic.IEnumerable<object> GetItems()
        {
            return new[] { this };
        }
    }
and my database definition looks like this:

 

return new List<ITableDefinition

>

{

CreateTableDefinition<EveLight.

EVECacheItem,string>(c => c.Hash),

CreateTableDefinition<EveLight.Results.

AccountStatus,bool>(s => true),

};

 

An EVECacheItem object is saved the line before without any troubl, can anyone give any suggestions?

Developer
Mar 29, 2011 at 3:33 PM

Never mind - a generic call meant it was being typed as an object - although the error message was coming back with the concrete type, that wasn't actually what it was checking for.