|
Is possible in WCF service: method return IList when object can be Person class?
Ex: in IServiceContract.cs
[ServiceContract] public interface IDAS { [OperationContract] void DoWork(); [OperationContract] List<object> GetAnyClass(); }
And class:...
Started by Cheva on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
[OperationContract] [KnownType(typeof(Person] IList<Person> GetPeople(); [OperationContract....
Theoretically yes, although you need to tell the service that it might be expecting a Person object using the KnownTypeAttribute on your method.
|
|
I'm building my personal CMS and need your advice organizing core functions and classes. I have folders:
/shared /classes DB.php Session.php Config.php ... /libraries Arrays.php DateTime.php Email.php ...
The files in 'classes' folder contains core classes...
Started by Mark Tyler on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Should i just write them as functions, or make them static and wrap in some class? Basically i need.
|
|
I'm now using NetBeans as my IDE-of-choice, and it has a plugin for UML modeling. In the class diagram, there are model elements known as "Boundary Class", "Control Class", and "Entity Class". However, I can't find a good definition of them, but I did...
Started by Thomas Owens on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Boundary classes are ones at the boundary business entities like "person" and "bank account"
control classes implement some business logic.
These are class stereotypes used in analysis.
|
Ask your Facebook Friends
|
Apologies if this was already asked but, I have had a look and can't find anything. I am trying to work out the best way to model the following in C#. I have sketched out a few idea but none of them feel right.
I have created an abstract 'Person' class...
Started by Skittles on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
That it is both 'flexible' and 'accurate'
public class Parties { Person Person {get; set {} public class Business : Organization {} public class Contact: Person { public string FirstName{getYour problem is your....
|
|
In a book, it says
the class Name has the property of last name and first name.
Address inherits from Name, and has additional property of street number, street name, city, state, zipcode.
That seems different from the other cases, where
Cat inherits ...
Started by Jian Lin on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
But for cases when indeed every entity of Address class also has the same properties as Name class inheritance is....
Be perhaps more elegant to have a composite class Person that has member variables of types Name and Address.
|
What is the difference between business class and domain class? What is meant by persistent classes?
What is the difference between business class and domain class? What is meant by persistent classes?
Started by sevugarajan on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
It can be the same as the domain ....
A business class is one that your application works with.
A database) to an in-memory object.
It is typically used to map data from your data store (e.g .
A "domain" class is one that models your data.
|
|
Class Bob extends Person { //do some stuff } class Person { public function __construct() { //get the class name of the class that is extending this one //should be Bob } }
How can I get the class name of Bob from inside the constructor of the Person ...
Started by Andrew on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
My name is ".__CLASS__.", and I have....
Lt;?php class Bob extends Person { public function __construct() { parent::__construct(); } public($this) , ".\n"; } } class Person { public function __construct() { echo "Hello.
|
|
Is it possible for an upper middle class person to live in a lower middle class home? In general, can high earning people be poor?
Started by The Usual on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at yahoo):
They even take vacations with their family.
In a 3bdrm home in a middle class neighborhood.
|
|
So I was the only person to sign up for a CCW class this Sunday. They said they would offer me a discount if I did one of their other days but that is a no-go for me. What the minimum length a CCW course can be? It was suppose to be from 9AM-5PM but now...
Started by jeremy_283 on
, 15 posts
by 8 people.
Answer Snippets (Read the full thread at glocktalk):
Number....
I think there may be a max.
I was of the understanding 8 hours was the minimum, whether it's a class of 3 or 30.
For less, especial with this.
|
|
Hello, If i have the following code example:
public class ClassBass { public int ID { get; set; } public string Name { get; set; } } public class ClassA : ClassBass { public int JustNumber { get; set; } public ClassA() { this.ID = 0; this.Name = string...
Started by Pr0fess0rX on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Your class....
What you're around.
You could change the implementation to throw an exception when the property inherit a base class if you're implementing all of the functionality of that base class.
And properties of the base class.
|