Questions tagged [complextype]
366 questions
17
votes
2 answers
XmlAttribute/XmlText cannot be used to encode complex types
I am getting the following error on the below class:
Cannot serialize member 'Ingredient' of type DataObjects.Ingredient. XmlAttribute/XmlText cannot be used to encode complex types.
Any thoughts as to…
David Poxon
- 2,304
- 4
- 21
- 41
15
votes
2 answers
Passing complex navigation parameters with MvvmCross ShowViewModel
My complex type wouldn't pass from Show to Init method even with configured MvxJsonNavigationSerializer as specified here Custom types in Navigation parameters in v3
public class A
{
public string String1 {get;set;}
public string String2…
Alexey Strakh
- 10,508
- 17
- 76
- 146
12
votes
4 answers
Entity Framework returning distinct records issue
I have a PC Enity which have some Properties , I would like to return a list of distinct Object (PC or Complex Type or whatever ) based on a property in order to bind it to server controls like DropDownList . And Because my method located in BLL I…
Mostafa
- 2,577
- 8
- 42
- 70
11
votes
2 answers
How do you nest complexType elements in an xsd?
I have an xml and xsd file that both validate correctly (tested at http://xsdvalidation.utilities-online.info/).
However, the xml does not validate against the xsd. I think this is because I am incorrectly nesting complexType elements in the xsd,…
Ian Campbell
- 2,520
- 10
- 52
- 102
7
votes
4 answers
How do you insert data into complex data type "Struct" in Hive
I'm completely new to Hive and Stack Overflow. I'm trying to create a table with complex data type "STRUCT" and then populate it using INSERT INTO TABLE in Hive.
I'm using the following code:
CREATE TABLE struct_test
(
address STRUCT<
…
data101
- 95
- 1
- 4
- 9
7
votes
3 answers
Problem with Entity Framework 4, Complex Types, StoredProcs, and temp tables
I am skinning my knees on Entity Framework 4 and running into a slight problem.
I have some stored procedures that I am pulling into my EDMX. When I create complex types from these procs, EF has no problem getting the column information. Except…
Repellr
- 71
- 1
- 4
7
votes
6 answers
How to use complex number "i" in C++
I am coding a simple DFT algorithm now and I want to use the complex number i in complex exponential. I saw somebody use #include and #include, and then they used the overloaded symbol I such as exp(2*I) . But it seems it doesn't…
Cancan
- 591
- 3
- 12
- 22
6
votes
1 answer
C++11 copy assignment for std::complex in g++ 4.5 - no match for 'operator+'
The code below fails to compile with g++ version 4.5.0 using the -std=c++0x switch. I get the following error message:
error: no match for 'operator+' in 'std::pow [with _Tp = float, _Up = int, typename __gnu_cxx::__promote_2<_Tp, _Up>::__type =…
user2023370
- 9,597
- 5
- 41
- 74
6
votes
3 answers
Python enums with complex types
I'm new to Python and I'm wondering if I can build enums with complex structures, not just primitive types. For instance (in pseudo-code):
Point::Enum
x, y
constructor ( x, y ) {
...
}
bottom_left = Point ( 0, 0 )
top_left = Point (…
zakmck
- 2,022
- 27
- 37
6
votes
3 answers
What are Complex Types in Context with Entity Framework
Right now I am learning a lot about the Entity Framework from Videos on Pluralsight, so excuse my Question which might look newbish but I can not understand what Complex Types are or why I would need them.
I do know that I have to map them via…
CodeFanatic
- 11,364
- 1
- 16
- 37
6
votes
2 answers
Include Elements in XSD Complex Type Without New Element
I have this complex type:
Now I want to include…
ng5000
- 11,400
- 10
- 49
- 63
5
votes
1 answer
How to expose a complex type in a Delphi WebService
I've got a problem with exposing a DTO class through SOAP WebService.
My class looks like
TKontrahent = class
public
Imie : string;
Nazwisko : string;
Id : integer;
end;
Here's the Service's code:
TKontrahentService =…
krlm
- 747
- 7
- 18
5
votes
1 answer
PHP SoapParam/SoapVar for complex type gives "object hasn't 'xxx' property" - repeating element
This question relates to the use of SoapParam and SoapVar in a PHP SOAP client to handle repeating elements, where requests cannot be framed as associative arrays. More particularly, it addresses a difficulty in using SoapParam/SoapVar for complex…
BillF
- 734
- 3
- 11
- 21
5
votes
1 answer
Entity framework column mapping for complex types
I have complex type class ..Here is hierarchy
public class Item
{
public virtual Summary Summary { get; set; }
}
public class Summary
{
public int Id { get; set; }
[Key, ForeignKey("Item")]
public int ItemId { get; set; }
…
user1532976
- 399
- 1
- 5
- 14
5
votes
4 answers
How to identifying whether a template argument is std::complex?
How to identify whether a template parameter is std::complex? I want a general method which supports all data types like float, double, int, etc.
I know that using std::is_same I can check specifically for a given type, for example,…
Soo
- 805
- 6
- 20