Program Visual Studio jest skonfigurowany do wyświetlania białych znaków.
Naciśnij Ctrl+ R, Ctrl+ W.
Jeśli używasz mapowania klawiatury w języku C #: (dzięki Simeon)
Naciśnij przycisk Ctrl+ E, S.
Jeśli chcesz skorzystać z menu: (dzięki angularsen)
Edit > Advanced > View White Space
Mysql
ALTER TABLE `Table` AUTO_INCREMENT=18;
Mssql
DBCC CHECKIDENT ('table', RESEED, 71);
$type as property with namespace
services.AddControllers().AddNewtonsoftJson(
x => x.SerializerSettings.TypeNameHandling = Newtonsoft.Json.TypeNameHandling.All
);
Swagger Polymorphism
services.AddSwaggerGen(c =>
{
//c.UseOneOfForPolymorphism();
c.UseAllOfForInheritance();
c.SelectDiscriminatorNameUsing(_ => "discriminator");
//c.CustomSchemaIds(type => type.ToString());
Swagger own Schema Proccesor
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "*****.**** API V1");
//c.GeneratorSettings.SchemaProcessors.Add(new InheritanceSchemaProcessor());
});
// app.UseSwaggerUI(typeof(Startup).GetTypeInfo().Assembly, settings =>
// {
// settings.GeneratorSettings.SchemaProcessors.Add(new InheritanceSchemaProcessor());
// });
Wsl 2 windows file explorer path
To revert the last applied migration you should (package manager console commands):
Revert migration from database: PM> Update-Database
Remove migration file from project (or it will be reapplied again on next step)
Update model snapshot: PM> Remove-Migration
Wysłane przez admin w ndz., 02/28/2021 - 22:02
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/****/drupal/drupal
ServerName drupal.local
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<Directory /home/****/drupal/drupal>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Go to Administration -> Appearance -> Your Enabled Theme Settings -> JavaScript tab under Bootstrap Settings -> Modals, and disable "Enable Bootstrap Modals".
Razor - model - array - js
var courierList = @Html.Raw(Json.Serialize(@Model.ToDictionary(x => x.CarrierId, x => x.CarrierName)));
<./code>
return Json(new[] {
new { description = "blabla" }
});
Strony