-
- Newly add entities cannot be selected prior to SubmitChanges()
by Joe Rattz
- 1 Replies
- Last post
by Matt Warren - MSFT
- I assume the answer to this is going to be the same answer as I received in this post:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1106156&SiteID=1
But, I want to be sure.
If I add an entity to a table, I can't retrieve that entity back out until I call SubmitChanges(). Here is an example:
Northwind db = new Northwind(@"Data Source=.\SQLEXPRESS;Initial
-
- WCF and library assemblies
by SultanOfSuede
- 3 Replies
- Last post
by SultanOfSuede
- Is there a workaround for this scenario
I have a client Windows app. This app has a reference to a business library (a .dll) which is in turn a wrapper for data contracts exposed via a WCF service hosted in IIS. The business library doesn't have a config file, so it doesn't know about endpoints and thus, cannot function. The client shouldn't know diddly about the WCF services since it works
-
- DLINQ the OR restrict condition?
by Xiao Han
- 6 Replies
- Last post
by Xiao Han
- Just wonder how to perform an Or restriction in DLINQ. Basically I want something like q = q.Where(o=>o.Id == variable[1] || o.Id == variable[2] || o.Id == variable[3] ...... || o.Id == variable ); Is there any way I can do it in C# Thank you.
-
- Image binding and caching
by IdoMC
- 13 Replies
- Last post
by bpatters
- Image binding and caching
Hello
I am displaying images in XAML and setting there source using binding:
< Image Source = " {Binding Mode=OneWay, XPath=Icon}">
It seems that the images are not being cached on the client computer.
What should I do to enable the image caching
If they are cached, where are they They are not in the browser regu
-
- Events Tab in Property Window?
by TylerB
- 4 Replies
- Last post
by Dayne
- In the Windows Forms Designer you can manage event handling using the events tab in the properties window. In the builds of Orcas that I have seen (including VS Orcas Beta 1) this tab is missing. Any ideas on when/if we will see it in Orcas
-
- strong typed functions with interface params
by captBiele
- 4 Replies
- Last post
by captBiele
- Hi guys I have a client/server app that already implements WCF. All my functions have an interface as a return type. I control both ends of the wire, so I implemented the NetDataContractSerializer as told here . (this is the only way I know to send interfaces as parameters) It already works, but not gracefully yet. My proxy generates methods that take "object" parameters, which I would like to hav
-
- what's this escape character?
by bruce.du
- 3 Replies
- Last post
by Benny Tops
- hello,everyone!
In WPF, the code: <Button Content ="<Config>"/>
but It always has error,what is escape character for "<" thanks!
-
- Help and Support is not working in Windows Server 2003 (RC2)
by LRDutch
- 1 Replies
- Last post
by Ed Pinto - MSFT
- Help and Support seems to have disappeared in Win Server 2003 (SP2). It says to start the service, and I cannot seem to find where although I have checked all of the services.
Can someone please help me figure this out.
-
- How can I insert a Null value into an INT column in my SQL2005 database using LINQ?
by Webps
- 5 Replies
- Last post
by ben2004uk
- I've a AddDebtor function in my Debtor Entity Access Layer which add's a debtor into the table in the SQL 2005 database.
It looks like this:
Debtor d = new Debtor
{
RelationType = NullConversions .Int0ToNull2(relationType),
Address1 = address1,
Address2 = address2,
Address3 = address3,
Beginning = NullConversions .Int0ToNull2(beginning),
City = city,
-
- MySql Data Provider for Orcas
by Kliot
- 8 Replies
- Last post
by Kliot
- Does anyone know of a MySql Data Providor that works with vs.net 2008 or how to get the one that works with 2005 to work with 2008
Thanks
-
- Metadata contains a reference that cannot be resolved: 'net.pipe://localhost/TestService'
by Mahendra Nepali
- 5 Replies
- Last post
by Mahendra Nepali
- I was trying one of your demos of WCF from a webcast where a windows form is a host, exposing a component over multiple transport. However when I tried to add the service reference to the client as illustrated in the webcast, i get the following error.
Metadata contains a reference that cannot be resolved: 'net.pipe://localhost/TestService'
Please let me know where I have missed. Let me know
-
- How can I get ObservableCollection functionality without WindowsBase.dll?
by NoSuchThingAs2
- 2 Replies
- Last post
by Patrick Sears
- I have a separate project for my data classes; a few of them implement INotifyPropertyChanged to support data binding. Then I needed to add a custom collection that adds some functionality to automatically generate its items. My first instinct was to subclass ObservableCollection<MyElementType> since it's a great match for data binding... the only problem is that the class is in WindowsBase.
-
- How To Bind WPF Listview to Dataset/Table using Code.
by Vinod Sa
- 1 Replies
- Last post
by Benny Tops
- Hi,
I have requirement to bind a ListView to Dataset using code,
I could find number of sample that talks about binding fixed table in XAML to Listview but could not get any idea how to bind Dataset/Table using code.
any help will be appreciated.
Thanks & Happy Diwali
Vinod
-
- Crash occurs for some images
by Sakthi Sai Saranyan
- 7 Replies
- Last post
by sandover
- I add a System.Windows.Controls.Image to a Canvas in a window.
For some images i get an exception with the following stack trace.
" at System.Windows.Media.MediaContext.NotifyPartitionIsZombie(Int32 failureCode)\r\n at System.Windows.Media.MediaContext.NotifyChannelMessage()\r\n at System.Windows.Media.MediaContext.CompleteRender()\r\n at System.Windows.Interop.HwndTarget.OnResize()
-
- WPF Timer
by GavD83
- 3 Replies
- Last post
by LesterLobo - MSFT
- I'm new to WPF and just playing with writting a small monitoring app with an improved UI. However I cant seem to find the timer control. I need a way of having an event fire every 10 seconds how should this be done in WPF
Thanks for any help or pointers
-
- Help Needed - To call a .Net 3.0 WCF web service method with parameter of Byte array from JAVA
by tssbala
- 2 Replies
- Last post
by catchpraty
- Following is the Service Contract and OperationContract of .net 3.0 wcf service. I am using MTOM binding to upload the files.
[ ServiceContract ()]
public interface IMTOMWCFService
{
[ OperationContract ]
void AppendChuck( string fileName, byte [] buffer, long offSet);
}
public class MTOMWCFService : IMTOMWCFService
{
public void Appen
-
- Two Entity Designer Questions/Requests
by Justin Etheredge
- 6 Replies
- Last post
by Justin Etheredge
- I like the fact that you have provided static factory methods for each class that is generated in the entity framework, but could this be made optional Is this needed internally somewhere I ask this because it would be useful to create my own factory methods (or classes) and not have to worry about the other factory methods already being there that could accidentally be used(or having to manually
-
- How to convert canvas xaml file to canvas object??
by logN
- 5 Replies
- Last post
by logN
- if i have one xaml file and I want to convert it into one object of canvas ex . if xaml file name is myFile.xaml. i want to write function :
Code Snippet
Canvas ObjCanvas = MagicConversionFunction("myFile.xaml"); So how to write the MagicConversionFunction
-
- WPF Controls Help...
by JIpock
- 2 Replies
- Last post
by Ben Carter - MSFT
- Hello, I have a Window, which contains a stackpanel. I've added two WPF UserControls, each of which contains a Canvas and some elements within the canvases. The problem I have the two User Controls stacked, however, it appears the second Canvas's elements are drawing from the top of the Window, not the second canvas. I can place a TextBlock in the Canvas and set Canvas.Top="1", however,
-
- OneWay Databinding not working if we modify target value
by Joymon
- 2 Replies
- Last post
by JoyK
- Hi There,
Requirement : txt2.Text should update according to txt1.Text always.
This is the code I am using
< TextBox Grid.Column = " 0 " Name = " txt1 " Text = " dsf " />
< TextBox Grid.Column = " 1 " Name="txt2" Text = " {Binding ElementName=txt1,Path=Text,Mode=OneWay} " />
It works well ( text in th
-
- Sure I can give more detail
by iterationx
- 6 Replies
- Last post
by neil mosafi
- Hi. I have a structure of rows which contain arrays displayed in columns. The rows come from AuctionItems. <CollectionViewSource Source="{Binding Source={x:Static
Application.Current}, Path=AuctionItems}" x:Key="listingDataView"
/> And the column arrays come from IndexItems. <CollectionViewSource Source="{Binding Source={x:Static Application.Current}, Path=I
-
- HTTPS/SSL Issue
by Bruce Fullwood
- 2 Replies
- Last post
by Bruce Fullwood
- I'm trying to set up a WCF service that uses SSL, both for server authentication and encryption. I have an endpoint configured to use mexHttpsBinding. Eventually, I'll have it authenticate clients by certs and submit signed datacontracts as well, but for right now, I'm concerned with simply getting the server-side https working.
I would like to get this service working on the ASP.NET Devel
-
- Application Deployment Error on opening XBAP file
by Rohit Arora
- 4 Replies
- Last post
by Eric Cosky
- Hi,
I have created a WPF application with some images and it uses Win32 WindowsPrincipal interface for user-login validation, and a WCF service for database access.
I am able to open XBAP file from bin/debug directory to run the application without any problem.
Now, I copied entire WPF-solution folder to another location on my PC, rebuilt the app without errors (few warnings it throws any
-
- Update system.servicemodel config dynamically
by Tsaolat
- 7 Replies
- Last post
by Tsaolat
- Hi,
Could it be possible to manage the system.servicelmodel config section out of host config file in order to update it dynamically and load/unload one service at a time if its configuration is changed
I'd like to build some kind of WCF Services publishing app which will allow developers to upload wcf services libraries and configuration.
Thks for your help
-
- Share Resources between two or more forms
by DenisCote
- 2 Replies
- Last post
by Josh Smith
- How could one create globally available Resources in a separate file and include them in any form they wanted.