TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mishkkk
NA
59
1.1k
Entity query - calculate the difference between income and expenses a
Feb 10 2021 2:53 PM
Help me please!!!
I have:
public
class
Warehouse
{
public
int
WarehouseId {
get
;
set
; }
public
DateTime? DateOperation {
get
;
set
; }
// date record
public
int
Nomenclature {
get
;
set
; }
// name
public
int
Operation {
get
;
set
; }
// operation: only income and expense
public
decimal
Quantity {
get
;
set
; }
}
using
(Cxt db =
new
Cxt())
{
gridQuery.DataSource = ???
}
i need to calculate the difference between income and expense and show everything in the table. I think the approach should be:
select all fields income, summarize, select all fields expenditure, summarize, subtract from the amounts of income the amount of expenditure and write in the table, and so on all fields of the nomenclature.
Reply
Answers (
6
)
oledb is a class how to build it using c#. please see details section
how to build api with c#...?