« first day (3754 days earlier)      last day (1201 days later) » 
03:00 - 16:0016:00 - 23:00

mr5
4:02 PM
Why wouldn't this map to: https://localhost:44336/api/seller/1/products
 
4:15 PM
I'd say, scratch the Name =
Although that's just a guess
Looks weird there
 
need from query @mr5
 
Nah it's not from query, it's in the route
 
eh it happened to me before had to add fromquery explictly
 
mr5
@Squirrelkiller if I didn't specify the attribute name, it would fallback to template argument which I think is different.
hmm
 
no @Squirrelkiller is correct
 
mr5
4:19 PM
I am trying to print all the available routes also.
 
Have you heard about our api lord and saviour swashbuckle?
Also template is exactly what you want
 
oof I also want to say stuff about how its supposed to be IActionResult and it should be return OK(...
 
mr5
@Squirrelkiller what is that for?
most of this are from auto generated code.
 
Swashbuckle builds you a Swagger UI
 
mr5
oic
 
4:23 PM
1) install swashbuckle.core
2) add services.AddSwaggerGen(c => c.SwaggerDoc("v1", new OpenApiInfo { Title = "API", Version = "v1" })); to your startup's ConfigureServices
3) Add this to your Configure:
app.UseSwagger()
.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "API v1"))
 
mr5
{
    "action": "GetProducts",
    "controller": "Seller",
    "name": "{sellerId}/products",
    "template": "api/Seller"
}
It was resolved to this. wtf
 
Exactly
You wanna set template, not name
Here, this is what swashbuckle will generate: teambuilderwebapi.azurewebsites.net/swagger/index.html
 
mr5
Why didn't you sa...nvm
izz working now. thanks @Squirrelkiller
@Squirrelkiller I've also heard about this microsoft.versioning thing. Have you tried integrating that swashbusdjaskldjklle thing with that package?
 
Never heard of it^^
 
mr5
Various ways to version a controller. Could be under startup, controller's attribute, ...
And to specify it from client side, could be from Accept header, query string, custom header
 
4:36 PM
Still not watching videos at work^^
Also I prefer to read stuff anyway
Don't understand why people have to make videos for everything nowadays
 
mr5
For extra $$$
The first one?
Anyway, I installed the AspNetCore.
Types are resolved.
I might have to install VS Code so that I don't need multi startup project. It's not good to have slow to build&run and Chrome tab constantly closing&opening.
And I might find VS Code to run faster also instead of multi instance VS
 
The .Core thingy is sufficient. No idea what the AspNetCore one brings to the table.
 
mr5
Nice. I have swagger installed also.
 
time to go, bye
 
mr5
why do I have this...
o/
 
5:09 PM
Hi all,
How is it possible that a .NET Core project (3.1) references .NET Framework library (4.7.2)?
shouldn't this be not possible?
 
6:02 PM
@mr5 What is the issue that you are facing?
 
mr5
nothing much
it's just trivial things
 
Let me help you
if needed
 
 
4 hours later…
10:03 PM
Hey all, I have an application that processes Large Csv files. A lot of the csv files will have different number of columns and column data types. Now, I could create separate database tables fore each type of csv so that the data can be stored in said database tables.
However, it's really an overkill in terms of amount of work to create different types of tables because there is some rudimentary validation check that I have to do which could determine if the data within the csv is valid or invalid. if it's invalid, I just disregard the csv data in question
However,, I was wondering how good Microsoft SQL Server BLOB data type is when it comes to saving large file data when it comes to fast speed performance. Is saving large csv files as Microsoft SQL Server BLOB data type alright when it comes to fast speed performance?
 
10:26 PM
you are throwing the speed out of the window, when you try to keep the csv, and work with that.
179
A: Import CSV file into SQL Server

Vishwanath DalviBased SQL Server CSV Import 1) The CSV file data may have , (comma) in between (Ex: description), so how can I make import handling these data? Solution If you're using , (comma) as a delimiter, then there is no way to differentiate between a comma as a field terminator and a comma in yo...

there is some errorfile help for your csv import errors too
 
mr5
10:43 PM
@crazyTech have you read about the official blog of MS db team called "to blob or not to blob"?
 
@crazyTech It's perfectly fine. Just make sure you use a SqlDataReader.GetStream and stream the thing in and out or you'll be wasting all your memory.
 
@ntohol @mr5 @Hozuki Thank you. Ill take a look. :)
 
Oh fwiw writing a stream is done using a parameterized query and a stream param. the sqlclient will read it.
So if you're doing this by http, make a stream wrapper that reads from http upload, validates, and then passes through to sql. No overhead that way.
 
@Hozuki Thank you again. I'll investigate it further
 
03:00 - 16:0016:00 - 23:00

« first day (3754 days earlier)      last day (1201 days later) »