Edytor VS kropki

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

Kategoria: 

SET Id autoincrement Mysql and MsSql

Mysql

ALTER TABLE `Table` AUTO_INCREMENT=18;

Mssql

DBCC CHECKIDENT ('table', RESEED, 71);

Kategoria: 

Json.Newton Setting

$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());
            // });
Kategoria: 

Wsl 2 windows file explorer path

Wsl 2 windows file explorer path

 \\wsl$
Kategoria: 

revert Migration dotnet EntityFramework

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

Kategoria: 

Drupal - autoPath - taxonomy split patterm

Apache VisrtualHost Drupal (always remember)

<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>
Kategoria: 

drupal 8 layout builder can't scroll down

Go to Administration -> Appearance -> Your Enabled Theme Settings -> JavaScript tab under Bootstrap Settings -> Modals, and disable "Enable Bootstrap Modals".

Kategoria: 

Razor - model - array - js

Razor - model - array - js

 var courierList = @Html.Raw(Json.Serialize(@Model.ToDictionary(x => x.CarrierId, x => x.CarrierName)));
 
<./code>

object

                return Json(new[] {
                    new { description = "blabla" }
                });
Kategoria: 

Strony

Subskrybuj Notatnik RSS