EF Core - problem with optimistic concurrency
Hi,I`ve got problem with optimistic concurrency while updating entity in the EF Core. As far as I know I properly added RowVersion to my model and during the UPDATE this property shows in the WHERE...
View ArticleADO.NET DataColumn.Unique property and UniqueConstraint class
Does DataColumn.Unique property and UniqueConstraint class serve the same purpose? Any difference?
View Articlecalculating and storing prices in mvc
hello, happy to contact you i should developping a fuel product price management web application using asp.net mvc and entity framework. the purpose of this application is determine the price and...
View ArticlePostgres with Entityframework
Is it possible to follow DB first approach and generate edmx file with a postgres database?Thanks,Mahantesh
View ArticleHow to :) mulitple questions
Hello I have many questions because a lot of things don't work for my db.I have 3 tables : contacts, contact_type, serviceWhat I want to do is to edit informations about a contact and create...
View ArticleDAL method that fill datatable using stored procedure with infinite parametrs
dear concern!. i am working on c# in which a want a method that fill datatable using procedure , procedure have many parameters, i want a single method for all numbers of parameters. please help me.....
View ArticleEntity Data source wizard version is only compatible with Entity Framework 5
I am using visual studio 2017 with Microsoft .NET framework version 4.7 and Entity Framework 6 and SQL Server 2012.while adding Data source to a Web Form:I have this error:I did add Dynamic Data...
View ArticleHow to apply migration in Live Production Site using MVC5 code first entity...
Dear All,How to apply migration in Live Production Site using MVC5 code first entity framework, When i am doing Update-Database after adding extra field in model class then table is generating one...
View ArticleExisting database using asp.net core identity?
Hi , guys i have an existing database written in SSMS with custom users , so my question is can i scaffold the database to ASP.net core project and use the .net core authentication (IdentityUser) for...
View ArticleWhy data reader return not working
Why my data reader do not return any value. Image one I'm getting 18 record, when return it show 0 record.I'm trying to do a class for data reader. Please guide me. Thanks youImage 1Image 2
View ArticleInner Join Problem
Hi everyone,I'm making an Inner Join. As an example Solution tablom there is a Solution Category tablom that is bound to it. The following query returns 2 records when the result is 1 record. What is...
View ArticleDoubts about attaching log file to a particular service and sending it to email.
Friends, I implemented a windows service routine, however I will need to email this log file to the user, however I do not know how to implement the rule to attach and send to the person's email,...
View ArticleMSSQL and ADO.NET | Exception: “Invalid attempt to read when no data is...
When trying to read the object coming back from SQL, I am given the exception "{ "Invalid attempt to read when no data is present."C# code:using(SqlConnection con...
View ArticleDoes Database First Code First supported in asp.net core?
Hi Good day,I'am a .net developer and i use .net framework 4.6. I always used database first code first of entity framework I like that stuff beacuse it cant create edmx file like database first did...
View Articleef-core savechanges - invalid columnname
Hi,I changed a database table (both updated and dropped and recreated the table). Somehow, running the command in the package manager console:Update-Database -context <contextname>says that "No...
View ArticleUNIT OF WORK & REPOSITORY PATTERN & ADO.NET STORED PROCEDURES
INTRO: I'm fairly new to programming still and in a class I took, we used quite a bit of Repository pattern and I got experience using ADO.NET with stored procedures. I want to build upon what I have...
View ArticleEntityType 'xxx' has no key error
I used the EF Designer from Database to create an Entity Data Model. I try this code:public class BillboardContext : DbContext { public DbSet<Billboard> Billboards { get; set; } } public class...
View ArticleDynamic Field Name in Datatable
Hi In below line i have given field name in Dataset. But i have field name in Variable , I want to give variable name . Can it be done.Convert.ToDecimal(dt.Rows[i]["FixedPercentage"].ToString())I am...
View ArticleWhy code first approach migration is adding records where it should update
Issue: Below code has added the 6 records properly. But when I try to update the Name field in object with the 'Hospitality' then migration is adding the record instead of updating the record.Code...
View Articleremove a few items (Id) from results
Hello ,im trying to remove a few items from a query results using linqCore but its not removing themcode& results :IQueryable<int> postOn = //Results=9(Id)OK _context.QuettaOffers.Where(d...
View Article