-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from gpproton/setup-project-as-trummable
Setup project as trummable
- Loading branch information
Showing
10 changed files
with
472 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:String x:Key="/Default/CodeStyle/FileHeader/FileHeaderText/@EntryValue">Copyright 2022 - $CURRENT_YEAR$ Godwin peter .O ([email protected]) | ||
<s:String x:Key="/Default/CodeStyle/FileHeader/FileHeaderText/@EntryValue">Copyright 2022 - $CurrentDate.Year Godwin peter .O ([email protected]) | ||
|
||
Licensed under the MIT License; | ||
you may not use this file except in compliance with the License. | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License.</s:String></wpf:ResourceDictionary> | ||
limitations under the License.</s:String> | ||
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EFeature_002EServices_002ECodeCleanup_002EFileHeader_002EFileHeaderSettingsMigrate/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 166 additions & 0 deletions
166
samples/aspnet-sample/Migrations/20230606124455_Initial.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
130 changes: 130 additions & 0 deletions
130
samples/aspnet-sample/Migrations/20230606124455_Initial.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Axolotl.AspNetSample.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class Initial : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.CreateTable( | ||
name: "Categories", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(type: "TEXT", nullable: false), | ||
Name = table.Column<string>(type: "TEXT", nullable: false), | ||
CreatedBy = table.Column<Guid>(type: "TEXT", nullable: false), | ||
CreatedAt = table.Column<long>(type: "INTEGER", nullable: false), | ||
UpdatedBy = table.Column<Guid>(type: "TEXT", nullable: false), | ||
UpdatedAt = table.Column<long>(type: "INTEGER", nullable: true), | ||
DeletedBy = table.Column<Guid>(type: "TEXT", nullable: false), | ||
DeletedAt = table.Column<long>(type: "INTEGER", nullable: true) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Categories", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Tags", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(type: "TEXT", nullable: false), | ||
Name = table.Column<string>(type: "TEXT", nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Tags", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Posts", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(type: "TEXT", nullable: false), | ||
Title = table.Column<string>(type: "TEXT", nullable: false), | ||
Content = table.Column<string>(type: "TEXT", nullable: false), | ||
CategoryId = table.Column<Guid>(type: "TEXT", nullable: true), | ||
CreatedBy = table.Column<Guid>(type: "TEXT", nullable: false), | ||
CreatedAt = table.Column<long>(type: "INTEGER", nullable: false), | ||
UpdatedBy = table.Column<Guid>(type: "TEXT", nullable: false), | ||
UpdatedAt = table.Column<long>(type: "INTEGER", nullable: true), | ||
DeletedBy = table.Column<Guid>(type: "TEXT", nullable: false), | ||
DeletedAt = table.Column<long>(type: "INTEGER", nullable: true) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Posts", x => x.Id); | ||
table.ForeignKey( | ||
name: "FK_Posts_Categories_CategoryId", | ||
column: x => x.CategoryId, | ||
principalTable: "Categories", | ||
principalColumn: "Id"); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "PostTag", | ||
columns: table => new | ||
{ | ||
PostsId = table.Column<Guid>(type: "TEXT", nullable: false), | ||
TagsId = table.Column<Guid>(type: "TEXT", nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_PostTag", x => new { x.PostsId, x.TagsId }); | ||
table.ForeignKey( | ||
name: "FK_PostTag_Posts_PostsId", | ||
column: x => x.PostsId, | ||
principalTable: "Posts", | ||
principalColumn: "Id", | ||
onDelete: ReferentialAction.Cascade); | ||
table.ForeignKey( | ||
name: "FK_PostTag_Tags_TagsId", | ||
column: x => x.TagsId, | ||
principalTable: "Tags", | ||
principalColumn: "Id", | ||
onDelete: ReferentialAction.Cascade); | ||
}); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Categories_DeletedAt", | ||
table: "Categories", | ||
column: "DeletedAt"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_PostTag_TagsId", | ||
table: "PostTag", | ||
column: "TagsId"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Posts_CategoryId", | ||
table: "Posts", | ||
column: "CategoryId"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Posts_DeletedAt", | ||
table: "Posts", | ||
column: "DeletedAt"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "PostTag"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Posts"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Tags"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Categories"); | ||
} | ||
} | ||
} |
Oops, something went wrong.