Mapping and metadata information could not be found for EntityType'setting'

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
hi everybody,
    in the entity date model , i will a table name is "Transfer" after Update Model from database. In solution

i have add class name is "Transfer.cs" with property  
public int TransferId { get; set; }
public int CustomerID { get; set; }
public string NameBanking { get; set; }
public string NumberAccount { get; set; }
public string PersAccount { get; set; }
public int DisplayOrder { get; set; }      

and  class  name is"TransferManager.cs" with method such as:
public static List<Transfer> GetAllTransfer()
        {
            var context = ObjectContextHelper.CurrentObjectContext;
            var query = from c in context.Transfer
                        orderby c.DisplayOrder
                        select c;
            var transfer = query.ToList();

            return transfer;
        }

and in class "NopObjectContext" add new methode of Transfer:
public ObjectSet<Transfer> Transfer
        {
            get
            {
                if ((_transfer == null))
                {
                    _transfer = CreateObjectSet<Transfer>();
                }
                return _transfer;
            }
        }
private ObjectSet<Transfer> _transfer;

in model still have entity type name is "Transfer" and EntityContainer:Noptities  of entity type still have name"Transfer"
after built solution success, but run website then message error at method:
public ObjectSet<Setting> Settings
        {
            get
            {
                if ((_settings == null))
                {
                    _settings = CreateObjectSet<Setting>();
                }
                return _settings;
            }
        }

can you help me error?
13 years ago
Is there any one can help in this ? , i am having a similar problem ???
13 years ago
You can find many possible solutions to the problem on internet, take this one for example.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.