When auto generating database.cs with Peta Poco how do I account for composite keys

StackOverflow https://stackoverflow.com/questions/19407655

  •  30-06-2022
  •  | 
  •  

Вопрос

I am currently generating a database.cs file using Peta Poco and am hitting a problem with a composite key. In one of the tables.

This error is displayed:

Error   3   Running transformation: System.InvalidOperationException: Sequence contains more than one matching element
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)

^^ I would have posted an image but I need more reputation lol.

I am wondering if there is a way to make Peta Poco account for this type of composite key?

ty for any help given

Это было полезно?

Решение

You can't. Not without editing the file that generates the database.cs file. Sorry for the post :)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top