Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hello

i have to developpe a fuel products prices management system


there are several prices with its formula that i have implemented and i have to calculate all this prices and store theme in database

-price for domestic customers
-prices for foreign customers
-price for foreign regular customers
-prices for guests
-price in national currency
-price in Hard currency
-prices for each region
-price for each structure per region
-the weighted margin
-the margins of each region ... etc


i have chosen asp.net mvc as technologie web and Entity framework for access to database for building thise application

What I have tried:

my questions are:

1. are asp.net mvc and Entity framework the best technologies For this case?
2. For implementing all these formulate, have i to use stored function or stored procedure in database or i have to use linq to entities?
3. is there the examples for this case or codes source?
i want advices
any idea?
Posted
Updated 8-Oct-17 2:11am
v3

1 solution

1 There is rarely a "best" technology, but asp.net and mvc are certainly more than capable and a good option

2 It's up to you. These days people tend to use Entity Framework\LINQ as it's easier to do. Especially for simple operations like CRUD and basic queries so EF is probably a good option for you.

3 Your project is quite specific so it's not likely you'll find source code, and before you ask this is not a code-to-order website so we're not going to do the work for you.
 
Share this answer
 
Comments
David2509 8-Oct-17 10:04am    
thank you but it still one question :

For implementing all these formulas of prices,in your opinion, have i to use stored function or stored procedure in database or i have to use linq to entities?

what's the bes practice for prices with lot of formulas

any advice?
F-ES Sitecore 8-Oct-17 10:14am    
It depends. If you're doing calculations on a lot of data it might well be better to do that work in a stored procedure as it'll probably be quicker. To do complex calcs on a lot of data via EF it might involve reading all that data into your code and doing the maths in the code which won't be as efficient. You could always try doing both and seeing which one performs better.
David2509 8-Oct-17 13:21pm    
thank you very much but what do you mean by on a lot of data ?
F-ES Sitecore 9-Oct-17 6:50am    
If you have to process around 10,000 rows or more.
David2509 7-Nov-17 15:41pm    
if i want to keep the history in the results of the calculations at the database how do i do that?

thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900