What is Opf3? Why is Opf3? How is Opf3? All these burning questions and issues discussed here.
 | |
| | I've got two main questions. First: Why don't these forms have a search feature, or wiki? Second: How can I return a standard non-enumerable array from a single column using linq? The scenario is that I need an decimal array of measurements from my object.
Here's what I've come up with so far
decimal[] SieveEntrySpecifications = ( from x in _context.GetPersistents<MaterialSpecifications>() where x.MaterialId == MaterialId select x.MeasurementSpecification ).ToArray<decimal>();
but I'm thrown a Cannot create mapping for type 'System.Decimal' without persistent attribute. exception.
Any ideas?
Thanks in advance.
|
 | |
| | Hi!
1) this forum is maintained by me... i haven't gotten around to implement a specific search for the forum. There's a search site feature in the bottom of this page.
2) You need to create a persistent object that has a property that holds the decimal. Opf3 maps everything that is returned by the database to a persistent object. Decimal is none of that kind and therefore the exception is thrown.
-Christian
|