do this
[ExplicitKey]
[Computed]
Friday, August 17, 2018
nullable int which is key in dapper and getting casting errors?
Thursday, August 16, 2018
see why POST data is null
public int SaveBlah([FromBody] Object blah)
{
var jsonString = blah.ToString();
Blah result = JsonConvert.DeserializeObject<B;ah>(jsonString);
}
{
var jsonString = blah.ToString();
Blah result = JsonConvert.DeserializeObject<B;ah>(jsonString);
}
Monday, July 30, 2018
VS Project wont go in debug - no compile errors on VS
run dotnet run project file name at the root folder
now you will see the error
now you will see the error
Access to the path errors
delete bin and obj folders
make sure you are running as Admin
make sure you are running as Admin
Thursday, July 19, 2018
get request info in c# from RequestMessage
response.RequestMessage.Content.ReadAsStringAsync().Result
Tuesday, July 17, 2018
delete duplicate rows
WITH CTE AS
(
SELECT *,ROW_NUMBER() OVER (PARTITION BY [TagID],[TemplateID] ORDER BY [TagID],[TemplateID]) AS RN
FROM [TPDocCore].[TagTemplatexRef]
)
DELETE FROM CTE WHERE RN<>1
(
SELECT *,ROW_NUMBER() OVER (PARTITION BY [TagID],[TemplateID] ORDER BY [TagID],[TemplateID]) AS RN
FROM [TPDocCore].[TagTemplatexRef]
)
DELETE FROM CTE WHERE RN<>1
Wednesday, May 2, 2018
Unable to copy file, Access to the path is denied
Subscribe to:
Comments (Atom)