Questions tagged [datamember]

204 questions
0
votes
1 answer

RIA Service exposed with SOAP Endpoint. Cant get entity's members

There is a WCF RIA service exposed via SOAP endpoint. I added this service as a service reference to an another project. When I invoke service's method, i get pleased entity but without nested entites. In other words, there are no [DataMember]…
Oiew
  • 1,509
  • 1
  • 11
  • 14
0
votes
1 answer

How to hide/exclude a list node with DataContractSerializer when it has no value?

How to hide a list node with DataContractSerializer when it has no value? [DataContract(Namespace = "")] public class Order { [DataMember(EmitDefaultValue = false)] public string Name { get; set; } …
The Light
  • 26,341
  • 62
  • 176
  • 258
0
votes
2 answers

Containment of user-specified type denied in class

I have the GameSettings class. GameSettings.hpp class GameSettings { public: GameSettings(); GameSettings loadSettings(); void saveSettings(GameSettings const & GS); sf::VideoMode getVideoMode() const {return VMode;} bool…
sjaustirni
  • 3,056
  • 7
  • 32
  • 50
0
votes
1 answer

One data member of object via pointer isn't coming through

It might be difficult to help with this problem because I have a lot of code and don't really know what's messing up my output. The background info is that I'm writing a program that reads in lines of text from a file, parses the lines into tokens,…
singmotor
  • 3,930
  • 12
  • 45
  • 79
0
votes
1 answer

Checking a data member of a derived class

My question is more of a conceptual/learning one that applies in this specific instance. I'm doing an assignment, and I have a class called sensor, and a derived class called digitalSensor. One of the data members of sensor is "functioning". And,…
singmotor
  • 3,930
  • 12
  • 45
  • 79
0
votes
0 answers

Why can't I use my data contracts form my IService?

I have the following data contracts defined in my IService: [DataContract] public class PumpClass { [DataMember] public int ID { get; set; } [DataMember] public double litresPumped { get; set; } [DataMember] public double…
Dave3418
  • 1
  • 2
0
votes
3 answers

How can I add datacontract to a type (xxxDataTable) which is created by a typed data set?

I have a typed data set and I want to pass tables(which are created by .net) or collection of rows instead of objects(which I would be creating) or collecion of objects to the client side. Silverlight framework doesn't support system.data.datatable.
Uğur Gümüşhan
  • 2,455
  • 4
  • 34
  • 62
0
votes
1 answer

Is there a limit for DataMembers in DataContracts

I've created a class and added the attribute DataContract, made some Properties with DataMember-Attribute. After I add the sixth DataMember the object won't serialize... by removing the attribute it works again... I'm slightly puzzled and my…
s_mon
  • 13
  • 3
0
votes
1 answer

how to WCF dynamic DataMember?

example: a Customer class have 100 data member(id, name, age, address...etc) to be serialization to JSON. In Config file such as Web.config, can set a output list to serialize JSON ouptut. If output only id and name, then JSON only have id and…
user1881109
  • 23
  • 1
  • 7
0
votes
1 answer

C# .Net How to determine if nullable DataMember value has been supplied

I'm in the process of implementing a WCF/Soap service operation and have defined several of the data contract's members as not required (IsRequired = false). My question relates to the following two scenarios... The client supplies a null value for…
Jonna
  • 1
  • 2
0
votes
2 answers

Can I expose a DataMember of a class that is not a DataContract?

Can I do something like this: public abstract class DeletableEntity { [DataMember] public bool Delete { get; set; } } [DataContract] public class MyClass : DeletableEntity { [DataMember] public int ID { get; set; } } I really only…
IWriteApps
  • 973
  • 1
  • 13
  • 30
0
votes
1 answer

Referencing a specific repeater item instance

I've been looking all over StackOverflow and Google for an answer to this question, but I haven't been able to find anything. I have a C# based ASP webpage that uses a repeater control to list information about students returned via a SQL procedure.…
GibsonCode
  • 89
  • 2
  • 13
0
votes
1 answer

Restful web service hosted in IIS 7 not handling data contract members

I have a requirement to create a simple HTTP C# restful web service hosted in IIS 7 that can support a POST from a callout and the format of the POST data does not seem to be handled properly. The requirement for the data member names is that they…
Kelly Pritts
  • 75
  • 2
  • 9
0
votes
2 answers

gridview.Datasource and gridview.Datamember which I should set first?

If I want to set both gridview.datasource and gridview.datamember, which one I should set first? Is there any standard order about this? Thank you!
spspli
  • 3,128
  • 11
  • 48
  • 75
0
votes
2 answers

How to send class equals implementation to client using a WCF Web Server

I'm developing an aplication in java (JSF) which communicates whith an WCF web server. I developed the webserver using c#, and I'm havin trouble to send the equals implementation of an complex object to the java client. For example, consider this c#…
PauloRLA
  • 3
  • 1
1 2 3
13
14