|
I have 2 classes with a LINQ association between them i.e.:
Table1: Table2: ID ID Name Description ForiegnID
The association here is between Table1.ID -> Table2.ForiegnID
I need to be able to change the value of Table2.ForiegnID, however I can't and...
Started by HAdes on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If option 2, check you db and see if update cascade yes enabled for this fk and than get record... .
You wanna to associate with another record in table1 or change table1.id? if it's option 1, you need to remove that association and set a new one.
|
|
How do I open a file with the default associated program in Java? (for example a movie file)
Started by Blade on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I think they used the Runtime object....
See the following question for other options: " [Java] How to open user system preffered editor for given file? "
SwingHacks has a solution for older versions of Java .
You can use Desktop.getDesktop().open(File file).
|
|
What's the easiest way to get the filename associated with an open HANDLE in Win32?
Started by Max Caceres on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
In addition, because....
In unix with the traditional unix filesystem, you can open a file and then unlink it (remove its entry from the directory) and use it, at which point the name isn't stored anywhere .
On unixes there is no real way of reliably doing this .
|
Ask your Facebook Friends
|
Is there a significant overhead associated with calling OutputDebugString in release build?
Started by Canopus on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
#include <windows.h> int main() { const int COUNT = 1 ; int z ... .
Should take abut three minutes of you time.
Then remove the call to OutputDebugString, recompile and rerun.
Why not measure it yourself? Compile the following code, run it & time it .
|
|
Howdy. I am in a networking class and we are creating our own "networking API" using the socket functions we have learned in class thus far.
For the assignment the professor provided the already complete chat and server programs and we were to fill in...
Started by Chris on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This way you don't need to ....
I'm not sure if I really understand your problem, but I'd suggest to open the in/out streams directly when the socket is created and keep them in a struct together with the socket as long as the socket is valid (connected) .
|
|
How would I iterate through the tables of a database, and determine which publication and article those tables are associated with?
Answer Snippets (Read the full thread at stackoverflow):
The following tables will give you information about the replication:
MSPublications MSArticles... .
Note: This name can be changed at the time replication is configured .
You will have a database that is normally called DISTRIBUTION that houses your tables .
|
|
How to determine the applications associated with a particular extension (e.g. .JPG) and then determine where the executable to that application is located so that it can be launched via a call to say System.Diagnostics.Process.Start(...).
I already know...
Started by pauly on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Find out which command is associated with our extension var associatedCmdPath("\"{0}\" command is associated with {1} extension", associatedCmd, ext); } } } } }
@aku: Don't forget.
DocName)) { // 2.
|
|
I am using the SHGetFileInfo api to get a handle to and display the icon associated with a particular file.
If the file has no icon associated with it Windows will return you the default one that it uses in explorer for unknown file types. In this case...
Started by Jamie on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
SHGetStockIconInfo(SIID_DOCNOASSOC, SHGSI_SYSICONINDEX, &sii)
will return the icon index you're looking for in sii.iSysImageIndex... .
Which OS versions are you targeting? If you can assume Vista and later, there's an API SHGetStockIconInfo that you may find useful .
|
|
Does linq to sql automatically lazy load associated entities?
I would think it would but I can't find an article stating it as such.
Started by EdenMachine on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
This is useful when you know you'll need related data along with the main entity right off the bat, like to pre-cache... .
It also has a "load with" feature/semantic that allows you to batch load several things in a shotgun approach .
Yes, I believe it does.
|
|
Hi
I have webapplication which is running in my machine(written in java) and i need to find out the class files associated with html page generated by this web server.How to findout this?.
Started by Sidharth on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If it is for business purposes, then you really need to elaborate more... .
If it is only for debugging purposes, put the following in JSP:
<% Thread.dumpStack(); %>
You can find the compiled JSP classes in the /work folder of the appserver in question .
|