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 class, and usually performs some sort of business logic to display "Hello World" messsage....
A business class is one that your application works with.
A database) to an in-memory object.
Store (e.g.
|
|
What is meant by Business,System,Interface,Persistence classes? Explain me with some examples?
Started by sevugarajan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It's what differentiates one application....
Business could be the part of your application where all the functional part happens (ie part happens (ie sql requests)
Business: the core part of an application, usually called the business layer .
|
|
Is having reference to System.Windows.Forms in a business class and using MessageBox.Show wrong?
Currently have a event processing decorator class decorating a service class. When certain events fired decorator would like to ask user if they want to proceed...
Started by c00ke on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Perhaps it will be used in a new website, a web service to handle this is to provide... .
The reason for this is you never know how your business class might be used down the road.
You should never have a UI in a business class.
|
Ask your Facebook Friends
|
What are your favorite ways to encapsulate LINQ to SQL entity classes and data-context classes into business objects?
What have you found to work in a given situation?
Have you invented or taken to any specific patterns?
Started by roosteronacid on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
In which I implement business logic:
/// <summary> /// This class extendsRight now I'm trying to use LINQ to SQL entity classes as business objects, to pass them around , so your database layout can change without changing....
|
|
Why and when do we need immutable (i.e. readonly) classes (I am not talking about string . I am talking about Business Objects) in business or database applications?
Can anyone give me a real-world example of a scenario?
Started by JMSA on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
When you're modeling a business process in code, obviously what you, if a customer is a kind of person, then you....
Be useful for business objects, but you do need to approach problems with a different mindset take a slightly different tack.
|
|
Hello,
I would like to create my base business class, something like EntityBase, to have some common behavior, such as implementing interface to track changes in the object (IsNew, IsDirty) and INotifyPropertyChanges interface.
But many people say it'...
Answer Snippets (Read the full thread at stackoverflow):
By building state tracking, rendering....
We had this for several years, and there was nothing we could put in our base class of Single Responsibility Principle , which says that a class should only have a single area of responsibility.
It's bad.
|
|
I'm trying to clean my code to make it unit-testable. I know that unit tests must be created while coding but... I have to do it now, with code completed.
My business class is full of methods with a similar implementation like:
var rep=new NHrepository...
Started by Mauro Destro on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
One widely used approach is to have n repositories as parameters to your constructors... .
Also, I strongly recommend that you read Working Effectively with Legacy Code if you plan to write unit tests for your legacy code .
You're right about the dependecy injection.
|
|
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 or other
Often used with/as a ....
These are class stereotypes used in analysis.
|
|
A lot of the time I will have a Business object that has a property for a user index or a set of indexes for some data. When I display this object in a form or some other view I need the users full name or some of the other properties of the data. Usually...
Started by Greg on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Of your "Business object" class is to expose relevant data related to the business object, it may be entirely reasonable to create a property on the class that delegates the request for the lookup description to the related....
|
|
So I have a MVC app and in another project I have a normal collection of classes which handle the Business and Data logic for the application. I also have some logic in the Model of the MVC project itself. This logic handles ViewModels and the like, things...
Started by Damien on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Your business logic would either be in your controller, or (better) in a separate application may contain instances....
Generally speaking here - Your model classes should not have business logic knowledge by mxmissile).
Essentially DTOs.
|