Advanced Forum Search Results
-
Just adding my 2 cents...there MUST be a middle ground solution that maintains security without sacrificing keyboard input in full screen mode. FIND IT.
John
-
Just to close the loop on this, I'm answering my own question for future readers.
The following method in LocalDomainClient was the problem:
protected override sealed QueryCompletedResults EndQueryCore(IAsyncResult asyncResult)
{
LocalAsyncResult localAsyncResult = (LocalAsyncResult)asyncResult;
return new ...
-
Sure looks like it should work, although I'm having trouble getting what I need. I'd be interested if Unity were to work better at this than Ninject. As it is, I got a new error -- Ninject can't inject httpDomainClient because it doesn't have a parameterless constructor and it isn't tagged with the Inject ...
-
I'd be curious to see how that works out. It sounds similiar to what I tried: creating an IDomainClient myself. I still hit a wall because at the end of the day, DomainContext has a dependency on DomainClient, and DomainClient is not a partial class. In fact, I don't think DomainContext is a partial class, either. I ...
-
Thanks, Bryant.
That's the article I referenced above. It's very good, and the whole concept of MockDomainClient / LocalDomainClient is great. He outlines a method that works, but introduces a dependency into the ViewModel that I'm not comfortable with.
Regards,
John
-
After working for a bit with RIA Services, unit testing with a dependency injection tool (like Ninject in my case), I'm running up against a wall. I would like to use NInject to instantiate the appropriate DomainClient depending on whether the app is in test mode or live mode. However, there is a problem.
The DomainContext derived class ...
-
Thanks, Kasimer! I moved the Include attribute back to the entity class and it still worked. Not sure why I thought it didn't earlier. :) Thanks also for the IsForeignKey note...makes sense now.
John
-
Thanks for the help, Colin. That was part of the problem.
The other piece is that the 'include' attribute needs to go on the metadata class, not the entity:
1 [MetadataType(typeof(IssueMetaData))]
2 public partial class Issue
3 {
4 internal sealed class IssueMetaData
5 {
6 ...
-
[quote user="ColinBlair"]The .Include is an EntityFramework thing.[/quote]
Thanks Colin...I thought that might be the case.
As mentioned above, NHibernate is correctly populating the 'Project' property. However, it does not make it into the http response. Does that provide helpful information in tracking down the ...
-
Thanks Wolfgang. However, I note that ".Include()" is not an option at that point -- "cannot resolve symbol". Perhaps I am missing a reference?