Data dodania Pytanie
2018-02-14 17:02 WPF: Display notification box when my application is minimized »
How to implement, using WPF, notifications mechanism similar to what eg. Chrome has? By which I mean: custom content pop-up, displaying especially wh...
(0) odpowiedzi
2018-02-14 14:02 If (instance) / implicit boolean conversion on a custom class »
I have the following class: public class InterlockedBool { private int _value; public bool Value { get { return _value > 0; }...
(2) odpowiedzi
2018-02-14 14:02 Missing/changed API when migrating from DNX to ASP.NET Core 2.0 »
I have been working on migrating an application from obsolete DNX to ASP.NET Core 2.0. While doing so it found that there has been few changes in the ...
(1) odpowiedzi
2018-02-14 11:02 Is there a better way than using an IAsyncActionFilter to authorize if user is in role or user id is in database for specific record »
Requirement: There are some controller methods which only can be called if: 1. User has role "TaskAdmin" OR 2. User is responsible for the database...
(1) odpowiedzi
2018-02-14 10:02 Looking for specific regex »
I've been looking to create a regex for my specific situation. The furthest i've come with my own limited knowledge of Regex and by searching on Stack...
(3) odpowiedzi
2018-02-14 03:02 Pass UserDefined Table type Parameter from controller »
I am asking this question second time but still I did not got an answer. I want to execute a stored procedure that has a user-defined table type in a ...
(0) odpowiedzi
2018-02-14 01:02 How to show a dropdown list in Razor »
I'm having some troubles with Models and ViewModels. I need list all bills and the users in the same view. (users in a dropdown list) Also: When to ...
(1) odpowiedzi
2018-02-13 22:02 foreach loop with strings from a database »
I am trying to read multiple strings from a database and do a foreach string in (the strings I get from the database) Loop. To give you a better idea:...
(1) odpowiedzi
2018-02-13 22:02 Protect my code from Newtonsoft JSON »
I am building a textbook .NET WebAPI web service, which is supposed in the most simplistic case receive a GET request and return a JSON array of objec...
(2) odpowiedzi
2018-02-13 18:02 How can I split up my service registations into different files in ASP.NET Core? »
If you've ever used Windsor Installers then you know what I'm talking about. You can have different installers for different parts of the application ...
(1) odpowiedzi
2018-02-13 16:02 BitmapImage in .NET Core 2.0 »
I am porting .NET Framework project to .NET Core 2.0 but I have struggles with the BitmapImage class. I know that BitmapImage in .NET Framework is par...
(0) odpowiedzi
2018-02-13 15:02 Pictures of Buttons not appearing in Razor »
I was following a tutorial on a Multiselect list box with two buttons but the buttons, which should be -> and <- are not appearing. I have the fon...
(0) odpowiedzi
2018-02-13 14:02 Overloading, generics and type constraints : method resolution »
Consider this code snippet, featuring generics and overloaded functions : using System; namespace Test_Project { public interface Interface ...
(2) odpowiedzi
2018-02-13 12:02 Why does ValueTuple use non-standard IComparable implementation? »
The documentation for ValueTuple.IComparable.CompareTo(Object) says it returns: 0 if other is a ValueTuple instance; otherwise, 1 if other is null...
(1) odpowiedzi
2018-02-13 11:02 DataTable - Appending Additional column is throwing some Exception Error »
I'm trying to implement Server Side DataTable. Everything goes perfectly fine up to the last rowCallback where I'm appending button to additional colu...
(2) odpowiedzi
2018-02-13 10:02 Git rewrite history by running external tool on each commit »
We have a repo with several thousands of commits that uses a really old code convention we want to replace with the default Microsoft one. The easiest...
(2) odpowiedzi
2018-02-12 23:02 How can I let .NET wrapper for Rebar decide the mouse cursor? »
I'm making a Rebar wrapper for .NET. Here's how I've made my control. public class Rebar : Control { public Rebar() : base() { //Control...
(1) odpowiedzi
2018-02-12 22:02 OnAuthorization Called Twice When Returning Unauthorized Status »
I've implemented my own AuthorizeAttribute since I'm passing my Authorization Token in through a cookie. public class ValidateToken : AuthorizeAttr...
(0) odpowiedzi
2018-02-12 15:02 C# Generic Method with Type Constraints or Base Class Parameter »
If I write a method accepting a parameter which derives from a BaseClass (or an interface), as far as I know there are two ways to achieve that: void...
(5) odpowiedzi
2018-02-12 14:02 Why does a `null` Nullable<T> have a hash code? »
Bit of a weird question... But can anyone give me a justification for why this would be expected behaviour? This just seems totally odd to me.... /...
(3) odpowiedzi
2018-02-12 14:02 EF - IQueryable - two selects with one db call »
I am carrying out a pretty normal select data from table using Entity Framework Core and IQueryable. I am using paging in my search so want to fetch ...
(0) odpowiedzi
2018-02-12 13:02 how to redirect to home page using Razor »
In my view I have the following which is my home page: @Html.ActionLink("OVERVIEW", "List", "Items", null, new { @class = "navItem" }) I have a lo...
(1) odpowiedzi
2018-02-12 11:02 syntax error at or near "$1" when using npgsql »
I am currently trying to update npgsql. I had a method that was working perfectly using the old npgsql version, but when I run it with the new npgsql...
(0) odpowiedzi
2018-02-12 10:02 ToArrayAsync() throws "The source IQueryable doesn't implement IAsyncEnumerable" »
I have a MVC project on ASP.NET Core, my problem is connected with IQueryable and asynchronous. I wrote the following method for search in IQueryable&...
(3) odpowiedzi
2018-02-12 10:02 Using Autofac in integration tests with web api 2 »
I have been manually instantiating my services in my integration tests, but when I got to a serve that had Lazy dependencies, I did some research and ...
(1) odpowiedzi
2018-02-11 23:02 @Url.Action not working on AJAX call »
I am trying to use AJAX to post a set of values from my view to my controller. However instead of converting the URL.Action into corresponding control...
(1) odpowiedzi
2018-02-11 17:02 Web API self hosted client configuration »
I managed to run my self hosted WEP API using OWIN in a console application by starting it with a code like this: //string baseAddress = "http://192....
(2) odpowiedzi
2018-02-11 16:02 Seperate num to elements »
I'm trying to 'separate' a number into X elements. I mean, if my number is 12 and my desired element count (X) is 6, I want to separate for each elem...
(2) odpowiedzi
2018-02-11 15:02 how to suppress or a way to handle file post web API error »
I am getting error while trying to Post stream to a web API method, the reason I understand that it may be thrown if the file being streamed is being ...
(1) odpowiedzi
2018-02-11 14:02 Appropriate design pattern for the payment modules c# »
As i am learning through design pattern concept and also I wanted to implement the payment modules in my project using the proper design pattern. So f...
(4) odpowiedzi
2018-02-11 11:02 Linq: Inner join two tables and return as json for jquery datatable »
Im new here in using datatables and ajax in MVC ASP.net. Im having problem and its to difficult for me to solve this. I trying to join two tables as l...
(1) odpowiedzi
2018-02-11 08:02 Reuse anonymous variable within select statement »
db.opt.Select(z => new { z.QuestionTitle, Count = z.Responces.Where(x => x.Responseval == Constants.options.Agree).Count(), Perc = ...
(2) odpowiedzi
2018-02-11 01:02 ASP.NET Core 2 Localization (ViewLocalizer Not Working) »
I have the following: public void ConfigureServices(IServiceCollection services) { ... services.AddLocalization(o => { o.ResourcesPath = "Re...
(1) odpowiedzi
2018-02-10 16:02 Visual Studio Code debugger for ASP.NET Core 2 don't work with different port »
My intention is to start the VSCode debugger with different port than the default 5000 and for that I'm specifying the url both in "args" array (comma...
(1) odpowiedzi
2018-02-10 15:02 Failing to read input from .net-core console application in vscode »
I've been trying to get dotnet new console example project (for vscode) to work in Ubuntu 17.10. I can get the default program to run: using System...
(2) odpowiedzi