RIA Services et Interface
Hello, je souhaite retourner des interfaces via mon DomainService.
En gros, j'ai:
Code:
1 2 3 4 5 6 7 8 9 10
|
public interface IProduct
{
...
}
public class Product : IProduct
{
...
} |
Le code suivant fonctionne
Code:
1 2 3 4 5
|
[Query]
public IEnumerable<Products> GetAllProducts()
{
...} |
Mais moi, j'aimerais cela:
Code:
1 2 3 4 5
|
[Query]
public IEnumerable<IProducts> GetAllProducts()
{
...} |
Et là ça plante:
Citation:
The entity type 'IProduct' in the DomainService 'ProductDomainService' is abstract and must use a KnownTypeAttribute to specify at least one non-abstract derived type. DevInet.SL.DerivativesMarket.RiaServices
Any idea?