Click here to Skip to main content
15,891,746 members
Home / Discussions / C#
   

C#

 
QuestionDeserialize Pin
shers2-Jan-14 18:52
shers2-Jan-14 18:52 
AnswerRe: Deserialize Pin
dan!sh 2-Jan-14 21:02
professional dan!sh 2-Jan-14 21:02 
QuestionHow to save data in c# Pin
gaurav23252-Jan-14 18:24
gaurav23252-Jan-14 18:24 
QuestionRe: How to save data in c# Pin
Richard MacCutchan2-Jan-14 21:31
mveRichard MacCutchan2-Jan-14 21:31 
AnswerRe: How to save data in c# Pin
OriginalGriff2-Jan-14 21:35
mveOriginalGriff2-Jan-14 21:35 
AnswerRe: How to save data in c# Pin
Eddy Vluggen3-Jan-14 6:24
professionalEddy Vluggen3-Jan-14 6:24 
QuestionFilter list of classes by ComboBox. Harder than I thought. Pin
dudz artiaga2-Jan-14 4:10
dudz artiaga2-Jan-14 4:10 
AnswerRe: Filter list of classes by ComboBox. Harder than I thought. Pin
Ravi Bhavnani2-Jan-14 5:24
professionalRavi Bhavnani2-Jan-14 5:24 
AnswerRe: Filter list of classes by ComboBox. Harder than I thought. Pin
Eddy Vluggen2-Jan-14 9:06
professionalEddy Vluggen2-Jan-14 9:06 
Question[Solved] Getting non-null / non-zero cells from Excel using Cells.Find Pin
emma.sun.sts1-Jan-14 22:25
emma.sun.sts1-Jan-14 22:25 
AnswerRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
Eddy Vluggen2-Jan-14 8:12
professionalEddy Vluggen2-Jan-14 8:12 
GeneralRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
emma.sun.sts5-Jan-14 19:25
emma.sun.sts5-Jan-14 19:25 
AnswerRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
TnTinMn5-Jan-14 16:00
TnTinMn5-Jan-14 16:00 
GeneralRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
emma.sun.sts14-Jan-14 21:16
emma.sun.sts14-Jan-14 21:16 
QuestionN-Tier C# Master Detail Pin
ahmed_one1-Jan-14 21:23
ahmed_one1-Jan-14 21:23 
I am using Visual Studio 2010, Sql server Express Edition & C#.

I have develop a simple Master Detail application (mostly with the help of experts help from this forum) An Order system, and now I want to go one step further from simple application to N-Tier version.

Did some search on net and came up with Tutorial which guides me enough to create Order class which contains methods: -DataTable GetOrders(int OrdId) Retrieve order based on ID provided -int SaveData(string CustID, DateTime ShpDate, DateTime OrdDate) To save the order, This method has all Insert, Update, Delete command in it, using SqlAdapter.

Following the same pattern I've also created OrderDetails class for setting up line items for each order. OrderDetails also contains methods GetOrder & SaveData...

Now the main problem, what should I do to save the whole Order with OrderDetails? I know this is something I should wrap up in Transaction and create Relation after adding Data to Dataset...But not sure how to do it? any link/tutorial/sample/guidance will be highly appreciated.

I've not posted any code due to make this post clear...If required I will post the code immediately.

Thanks

Ahmed
AnswerRe: N-Tier C# Master Detail Pin
Eddy Vluggen2-Jan-14 8:07
professionalEddy Vluggen2-Jan-14 8:07 
QuestionRe: N-Tier C# Master Detail Pin
ahmed_one2-Jan-14 17:25
ahmed_one2-Jan-14 17:25 
AnswerRe: N-Tier C# Master Detail Pin
Eddy Vluggen3-Jan-14 6:37
professionalEddy Vluggen3-Jan-14 6:37 
GeneralRe: N-Tier C# Master Detail Pin
ahmed_one3-Jan-14 17:32
ahmed_one3-Jan-14 17:32 
GeneralRe: N-Tier C# Master Detail Pin
Eddy Vluggen4-Jan-14 5:28
professionalEddy Vluggen4-Jan-14 5:28 
GeneralRe: N-Tier C# Master Detail Pin
ahmed_one5-Jan-14 22:31
ahmed_one5-Jan-14 22:31 
GeneralRe: N-Tier C# Master Detail Pin
Eddy Vluggen7-Jan-14 9:18
professionalEddy Vluggen7-Jan-14 9:18 
QuestionMessage Closed Pin
1-Jan-14 17:24
Member 104982291-Jan-14 17:24 
AnswerRe: Seeking experienced Forex programmer to code EA in C# for PFSoft Protrader 3 Pin
Dave Kreskowiak1-Jan-14 17:52
mveDave Kreskowiak1-Jan-14 17:52 
GeneralRe: Seeking experienced Forex programmer to code EA in C# for PFSoft Protrader 3 Pin
OriginalGriff1-Jan-14 22:04
mveOriginalGriff1-Jan-14 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.