|
Amy Dev wrote: public Country GetCountryById(int id)
{
Country country = _countryRepository.Value.GetByIdNonProxiedAsync(id);
if (country != null)
return country;
else
return null;
}
Not to answer your question, but this made me chuckle.
BTW you may want to ask the question in the QA or in the C# forum.
Your time will come, if you let it be right.
|
|
|
|
|
Thanks mate. Nice catch. I posted this question here by mistake. I appreciate your response and I've moved the question to ASP.NET Forum.
Just in case if you are interested then my answer is, I tried to abstract as much complexity I can hide from my code but I forgot this one here. Actually this method is coded as per parallel programming.
|
|
|
|
|
I would like to know which moron thought C++ was better than C. As for Java and C#!
Who needs multiple inheritance when you have copy and paste?
|
|
|
|
|
|
Thanks mate. Nice catch. I wish you continue your these kind of annoying replies.
|
|
|
|
|
|
Thanks mate. I posted this question here by mistake. I appreciate your response and I've moved the question to ASP.NET Forum.
Parallely I'm going through your referenced Link. Really thanks
|
|
|
|
|
Rule 1: Learn to read. At the top of the page, it says: "if you need specific help please ask your question here." and links to the QA forum: http://www.codeproject.com/Questions/ask.aspx[^]
Instead, you posted what looks like your homework in a non-question forum, because you couldn't be bothered to look properly.
Now, what makes you feel that I might want to bother myself and spend time answering your question, when you can't be bothered to ask in the right place?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Rule 2: You don't talk about CodeProject
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
And Nice revert back @Brent Jenkins.
Please let people think what else they want. It's upto them how they represent themselves to others as it describes their atticates which matters equal to technical strength.
|
|
|
|
|
We're a bit like Fight Club here and have similar rules:
http://www.urbandictionary.com/define.php?term=Rules+of+Fight+Club[^]
Of course, being programmers we're a lot more buff and better looking than those skinny, ugly guys in the film
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Thanks mate. Nice catch. I posted this question here by mistake. I appreciate your response and I've moved the question to ASP.NET Forum.
My apologies for wasting your precious time.
|
|
|
|
|
0 - Well structured question! Well done for that!
1 - this forum is the Lounge where programming questions are not allowed.
Suggest you go to quick questions and ask this question again.
but as a really quick answer, you pass interfaces rather than objects so that you can pass any object that implements that interface - especially useful if you are unit testing, as you can pass fake objects that implement the interface.
PooperPig - Coming Soon
|
|
|
|
|
Thanks mate.I posted this question here by mistake. I appreciate your response and I've moved the question to ASP.NET Forum.
Regarding your answer, Thanks a lot for that. I got the point. I agree that was a stupid question but looking at someone else code in such a large application confused me. Thanks
|
|
|
|
|
There are no stupid questions - only stupid answers!
PooperPig - Coming Soon
|
|
|
|
|
There are many reasons for passing in an interface into a constructor. One reason is to be able to supply different implementations into the constructor, which is particularly useful when you want to unit test your code. Rather than having to pass in a concrete implementation, which might rely on things that are difficult to test, you can use a mocking tool to create a mock of the interface and pass this in. This makes it easy to do things like set up verifications.
|
|
|
|
|
Cross post.
I have already answered it in Asp.Net section.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
|
how can i implement the custom shapes like Rectangle, Ellipse using Ink Canvas in wpf application
|
|
|
|
|
Probably by asking in the WPF forum.
|
|
|
|
|
Sir,
I have a question bank in the excel format or in the word format so by using this as a database to the c#.net(windowsbased application)i need these question want to be rise in randomly when each time login. i tried in many ways but its not working, there are only for the column wise data are in excel so its not apat for my project, can u please do me a favor.please try in windows based application not by using sql or mysql.
|
|
|
|
|
|
Hi,
I am developing HRMS .NET WinForm application using C# and DevExpress.
I want to know what's the best way practice to include reports in my application?
Should I use the RDLC, Crystal Reports or the XtraReports from DevExpress?
I want the reports to be physical files (in \Reports) and not embded within my application then I will browse it using a database table so it will be easy to add new reports whenever its required.
Thanks
Technology News @ www.JassimRahma.com
|
|
|
|
|
Jassim Rahma wrote: Should I use the RDLC, Crystal Reports or the XtraReports from DevExpress? The respective producers of each reporting tool say it is a best practice to use their suite.
Jassim Rahma wrote: I want the reports to be physical files (in \Reports) and not embded within my
application then I will browse it using a database table so it will be easy to
add new reports whenever its required. All three would support that scenario AFAIK.
I'd recommend a fourth option; exporting to HTML based on a template, since that is the simplest option that meets the requirements.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I have the code to insert data from one stock feed to a sql table.
but according to the curves, sometimes i have 3 columns and some others i got 5 columns. my problem is that i only get the 5 column data in the table.
how can i get the 3 column data in the same table?
|
|
|
|
|
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
So please, edit your question and provide better information.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|