Base solution for your next web application
Open Closed

The sequence does not contain any matching elements #1470


User avatar
0
jackywang created

Hi hikanlkan, When I used the Unit Test of ABP , the error like 'The sequence does not contain any matching elements' happend in the method 'Initialize' of AbpDbContext. It took me a long time to find the error code . I found the error was caused by one property of an entity was added the attribute 'Column',like that :

[Column(TypeName = "varchar")] public virtual string Picture { get; set; }

But, I learnt some aout Code First , which has the attribute of 'Column', so why the column attribute caused the error? Thank you .


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    duplicate: #1471