What I'd like to do later on is to write the collected students to a file and be able to read from that file. Can this be done as writing and reading a text file or is a special type of writing code needed?.
StreamWriter file = new StreamWriter("d:/Students.txt");
Hi My name is Teame.
I want to develop a cafeteria management system using C#. But, I want to compose the consumption and to reduce from master inputs balance. For example, when I want to make an output called pizza, I have to use a potato, tomato, oil, green paper, and so on inputs. Then the inputs I have used should be reduced from the master inputs balance and will made as an output product called Pizza. So, please, help me to how to reduce the input consumption automatically when the waiter orders a Pizza using C#. I would like to say thank you for your support.
The obvious answer would be to use a database. You would need to keep a table of ingredients in the database which includes counts of current stock. Then as you create a food item you get the count values from the database, reduce them by the amount used and update the counts. There are many database tutorials to be found.
Dear Richard MacCutchan,
I would like to say thank you for your response. But, I need some example that how to reduce and count if you have any link for the database tutorials which matches the question I am asking. Thank you Very much.
I am using Microsoft SQL Server to create the database for the cafeteria management system. If you have a link which will help me to refer and to get some tutorial, please, give me the link. Thank you for your help.
When I add a ADO.Net Data Entity Model, and let it create entities (from stored procs if that matters), it adds "_Result" to the end of the entity names.
How can I keep it from doing that?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
This is from memory, you might need to dig around or google for the specifics, when when you configure an SP in EF you can have it create a type for the results (which is what you're seeing with _Result), or you can define your own class, call it what you want, and tell EF to use that class instead. How you do this will be in the properties for the SP in the model diagram if you look.