Data dodania Pytanie
2017-03-09 13:03 LINQ left join, group by and Count generates wrong result »
I'm struggling with linq (left join - group - count). Please help me. Below is my code and it gives me this result. Geography 2 Economy ...
(4) odpowiedzi
2017-03-09 11:03 ASP MVC Workflow tool form logic and permissions »
I'm creating a workflow tool that will be used on our company intranet. Users are authenticated using Windows Authentication and I've set up a custom ...
(4) odpowiedzi
2017-03-09 09:03 Why does ?: cause a conversion error while if-else does not? »
Making some changes in the code I use the next line: uint a = b == c ? 0 : 1; Visual Studio shows me this error: Cannot implicitly convert ty...
(3) odpowiedzi
2017-03-08 23:03 OAuth authorization returns "Authorization has been denied for this request" in a Azure Mobile App project »
I implemented OAuth authorization in a .Net Web Api project following this tutorial. I need to do the same, but within an Azure Mobile App project. It...
(1) odpowiedzi
2017-03-08 21:03 What is a good way to integrate RSpec with another language such as Python or C#? »
I wrote a Ruby Gem and other teams in the business will need to implement the same functionality in Python and C#. I would like to run the exiting sp...
(1) odpowiedzi
2017-03-08 17:03 ASP.NET MVC 4.5 Map Partial View to Main View on Form submit »
Hello Mighty Stackoverflowers, I'm currently working on an ASP.NET MVC 4.5 application. I need to map the input values from my partial view to my mai...
(2) odpowiedzi
2017-03-08 16:03 How can I enable C# 7 in Visual Studio 2017 in my project? »
After Visual Studio 2017 was released I wanted to try to create simple console project with new C# 7 features. I expected that I simply download new V...
(1) odpowiedzi
2017-03-08 14:03 Referencing F# code in android project »
I'm doing a project where i am supposed to write an android application that uses a code-base of f# code. In doing so i am running into some problems ...
(1) odpowiedzi
2017-03-08 14:03 Referencing .NET Standard csproj project from .NET Framework traditional project »
I have a library written against .NET Standard 1.3 which should be compatible with the .NET Framework 4.6.1 runtime. The library uses the new csproj a...
(2) odpowiedzi
2017-03-08 12:03 Why does Entity Framework try to SELECT all columns even though I have specified only two? »
I've inherited an ASP MVC project that uses Entity Framework 6.1.3 to interact with a Dynamics CRM 2011 SQL database. I'm using this query to try and...
(2) odpowiedzi
2017-03-08 12:03 How to implement Auditing system in C# in webservice? »
I created a webservice for my application. In that webservice i'm accessing SQL server for Datas. Now the feature, i've to implement is, i have to che...
(1) odpowiedzi
2017-03-08 11:03 VS 2017 Bug or new features? »
After upgrading to VS 2017 I got the following error from this code (which has always been working perfectly) byte[] HexStringToByteArray(string hex)...
(1) odpowiedzi
2017-03-08 02:03 How to control DisplayNameFor result, when using FluentAPI »
Working on an ASP.NET MVC 5 app. Using Fluent API to define model maps. I want to change the column name appearance so that if I do a DisplayFor it ap...
(1) odpowiedzi
2017-03-08 01:03 Get the controller's return type in ExceptionFilterAttribute - HttpActionExecutedContext »
If somewhere within the request lifecycle, an exception is thrown, the HttpActionExecutedContext has a null response. public class MyExceptionFilter...
(1) odpowiedzi
2017-03-07 21:03 Tuple syntax in VS 2017 »
In VS2017 RC, when you tried to use new tuple syntax, you received the following error: CS8179 Predefined type 'System.ValueTuple`X' is not def...
(1) odpowiedzi
2017-03-07 21:03 I can access libraries not referenced directly »
I was following this tutorial for me to be familiar with ASP.NET core and other related tech. https://www.codeproject.com/articles/997216/restful-day-...
(1) odpowiedzi
2017-03-07 14:03 How to check valid object in PropertyDescriptor? »
I'm working in WinForms application and used the BindingList datasource. I need to check the whether the object is valid or not with PropertyDescripto...
(1) odpowiedzi
2017-03-07 14:03 Entity Framework Core Filter DbSet »
Is it possible in Entity Framework Core to automatically filter a DbSet<TEntity> of a DbContext? I'm looking to implement something like that ju...
(2) odpowiedzi
2017-03-07 12:03 Entity Framework and Postgresql: stored procedures »
I'm using Entity Framework with postgresql. A common case is that I'd like to select a function result as a part of a query, like SELECT t.id, func1(...
(0) odpowiedzi
2017-03-07 09:03 Azure API App multiple actions with same verb and different routes gives swagger error »
I have a ApiController with those GETs: public class UsersController : ApiController { public IHttpActionResult GetUsers() { [...] ...
(1) odpowiedzi
2017-03-07 05:03 How can I upload a local DB to Windows Azure? »
I develop a WebApi using a LocalDB, but I want to deploy it to Azure. I found out that you cant use a LocalDB, but you can use a SQL Server Compact. ...
(2) odpowiedzi
2017-03-07 02:03 Display two model in a View? »
I have two model in the Controller public ActionResult Search(int? id) { var yearSummary = from ti in db.TrainingRecordDBSet ...
(1) odpowiedzi
2017-03-07 01:03 Is there a difference between `x is int?` and `x is int` in C#? »
class C<T> where T : struct { bool M1(object o) => o is T; bool M2(object o) => o is T?; } The two methods above seems to behave...
(2) odpowiedzi
2017-03-06 23:03 .Net DataTable sorting/ordering by amount »
I've tried many searches for ordering a DataTable based on a column and all searches only return results for either sorting or ordering the actual col...
(1) odpowiedzi
2017-03-06 21:03 Excluding time from TextBoxFor when ViewModel setup as DataType of Date »
I am trying to properly display a (nullable) Date-type-only field. For this field, my Model and ViewModel classes are defined as.... [DisplayFormat(D...
(2) odpowiedzi
2017-03-06 20:03 Multiple cascading paths Error - Entity Framework Core »
I am trying to setup a new database using Entity Framework Core but I am getting an error when calling the command "Update-Database" saying: "Introd...
(1) odpowiedzi
2017-03-06 16:03 Cannot reuse an 'ApiController' instance - Unity DI »
I followed this tutorial to use Unity dependency injection in WebAPI. To avoid registering each type seperatly I used this setup _container.Register...
(1) odpowiedzi
2017-03-06 14:03 Running two functions concurrently »
I want to run two functions one after the other that accesses a third function with a condition that when the first is using the third, the second fun...
(1) odpowiedzi
2017-03-06 12:03 Why use async when I have to use await? »
I've been stuck on this question for a while and haven't really found any useful clarification as to why this is. If I have an async method like: pu...
(3) odpowiedzi
2017-03-06 09:03 C# complex type initializer compiles without new keyword »
I was recently working on some code, that has changed from using decimal to use a complex type that has the decimal number and a type to represent a f...
(3) odpowiedzi
2017-03-06 09:03 How to refresh datatabel using angularjs mvc c#? »
I am create one small demo for show users list.for that show list used datatabel with angularjs. my listing show very well first time.but i want to cr...
(1) odpowiedzi
2017-03-05 23:03 Convert var to class object in C# »
I wish to get response from my ASP.NET web API which responds with an object type Product. However when I try to get the response with Postman, it a...
(2) odpowiedzi
2017-03-05 16:03 Building Navigation Rules in ASP.NET MVC »
I'm going to use the default ASP.NET Core web application _Layout.cshtml as my example. It creates the following navigation bar: <ul class="nav na...
(0) odpowiedzi
2017-03-05 16:03 int is not printing from variables »
I am gonna try to not make this question to long. I am making email confirmation letters for a hotel. If there has been a change in a reservation t...
(1) odpowiedzi
2017-03-05 15:03 C#: struct constructor performance »
Why creating struct with consturctor more slower than directly assingment? In code below i get 10 second with custom constructor and 6 second without!...
(2) odpowiedzi