Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
QuestionBit Shifting problem Pin
norjali17-Aug-10 21:15
norjali17-Aug-10 21:15 
AnswerRe: Bit Shifting problem Pin
DaveyM6917-Aug-10 21:25
professionalDaveyM6917-Aug-10 21:25 
GeneralRe: Bit Shifting problem Pin
norjali17-Aug-10 21:28
norjali17-Aug-10 21:28 
AnswerRe: Bit Shifting problem Pin
Richard MacCutchan17-Aug-10 21:26
mveRichard MacCutchan17-Aug-10 21:26 
GeneralRe: Bit Shifting problem Pin
norjali17-Aug-10 21:30
norjali17-Aug-10 21:30 
GeneralRe: Bit Shifting problem Pin
norjali17-Aug-10 21:53
norjali17-Aug-10 21:53 
GeneralRe: Bit Shifting problem Pin
Richard MacCutchan17-Aug-10 22:18
mveRichard MacCutchan17-Aug-10 22:18 
QuestionDataadapter and datasets issue Pin
maephisto00717-Aug-10 20:44
maephisto00717-Aug-10 20:44 
Hi all!
I have the following situation - three tables in the db :
- um_users (id, name)
- um_roles (id, description)
- um_user_roles (user_id, role_id)

I load into a data set two datatables : the "users" one, and another one build on the other two, like this :
_cmd = new OracleCommand("select * from um_users", _conn);
            _odaUsers = new OracleDataAdapter();
            _usersDataSet = new DataSet("um_users");
            _odaUsers.SelectCommand = _cmd;
            _odaUsers.Fill(_usersDataSet, "um_users");

_cmd = new OracleCommand("select u.user_id, r.role_id, r.role_name, r.descr " +
                                    "from um_users u " +
                                     "inner join um_user_roles ur on u.user_id = ur.user_id " +
                                     "inner join um_roles r on ur.role_id = r.role_id ", _conn);
            _odaUsers.SelectCommand = _cmd;
            _odaUsers.Fill(_usersDataSet, "um_user_roles");
            _usersDataSet.Relations.Add("users_uur", _usersDataSet.Tables[0].Columns["USER_ID"], _usersDataSet.Tables[1].Columns["user_id"]);


This snippet also adds a relation between the two.

I display them in a ultrawingrid from infragistics, and I'm able to edit them. Saving the modifications for the first table worked with no problem,but since the second one is more like a view, i have no ideea how should i proceed. should i build an insert command or how ?

Thanks!
Questioncache the name using input param.. Pin
A.Machan Kachan17-Aug-10 17:56
A.Machan Kachan17-Aug-10 17:56 
QuestionHow to convert any object to byte[] without marking it Serializable or DataContract? Pin
1eyhk117-Aug-10 16:35
1eyhk117-Aug-10 16:35 
AnswerRe: How to convert any object to byte[] without marking it Serializable or DataContract? Pin
Gonzalo Cao17-Aug-10 20:56
Gonzalo Cao17-Aug-10 20:56 
GeneralRe: How to convert any object to byte[] without marking it Serializable or DataContract? Pin
1eyhk118-Aug-10 1:51
1eyhk118-Aug-10 1:51 
GeneralReverse Pin
1eyhk118-Aug-10 16:19
1eyhk118-Aug-10 16:19 
GeneralRe: Reverse Pin
Gonzalo Cao18-Aug-10 20:18
Gonzalo Cao18-Aug-10 20:18 
GeneralRe: Reverse Pin
1eyhk118-Aug-10 21:43
1eyhk118-Aug-10 21:43 
GeneralRe: Reverse Pin
Gonzalo Cao18-Aug-10 21:44
Gonzalo Cao18-Aug-10 21:44 
GeneralWokring now, atttempts: from interop to BinaryFormatter to DataContractSerializer - still need to see MyAccount[] Pin
1eyhk120-Aug-10 19:33
1eyhk120-Aug-10 19:33 
GeneralRe: Wokring now, atttempts: from interop to BinaryFormatter to DataContractSerializer - still need to see MyAccount[] Pin
Gonzalo Cao23-Aug-10 21:50
Gonzalo Cao23-Aug-10 21:50 
GeneralRe: Wokring now, atttempts: from interop to BinaryFormatter to DataContractSerializer - still need to see MyAccount[] Pin
1eyhk123-Aug-10 21:58
1eyhk123-Aug-10 21:58 
Questionhow to combine audio file with video file Pin
yftah198917-Aug-10 9:56
yftah198917-Aug-10 9:56 
AnswerRe: how to combine audio file with video file Pin
Ravi Bhavnani17-Aug-10 10:38
professionalRavi Bhavnani17-Aug-10 10:38 
QuestionGPS Location Pin
Bravegee17-Aug-10 6:48
Bravegee17-Aug-10 6:48 
AnswerRe: GPS Location Pin
OriginalGriff17-Aug-10 8:16
mveOriginalGriff17-Aug-10 8:16 
GeneralRe: GPS Location Pin
Eduard Keilholz17-Aug-10 21:34
Eduard Keilholz17-Aug-10 21:34 
GeneralRe: GPS Location Pin
Bravegees18-Aug-10 0:03
Bravegees18-Aug-10 0:03 

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.