Compare commits

..

No commits in common. "dev" and "dev-mail-service" have entirely different histories.

29 changed files with 164 additions and 6142 deletions

View File

@ -5,7 +5,6 @@
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<IsPublishable>false</IsPublishable>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -1,155 +1,17 @@
using Asp.Versioning; using Microsoft.AspNetCore.Http;
using AutoMapper;
using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using PortBlog.API.Entities;
using PortBlog.API.Models;
using PortBlog.API.Repositories.Contracts;
namespace PortBlog.API.Controllers namespace PortBlog.API.Controllers
{ {
[Route("blog/api/v{version:apiVersion}/posts")] [Route("api/blog")]
[ApiController] [ApiController]
[ApiVersion(1)]
public class BlogController : ControllerBase public class BlogController : ControllerBase
{ {
private readonly ILogger<BlogController> _logger; private readonly ILogger<BlogController> _logger;
private readonly IBlogRepository _blogRepository;
private readonly IMapper _mapper;
public BlogController(ILogger<BlogController> logger, IBlogRepository blogRepository, IMapper mapper) public BlogController(ILogger<BlogController> logger)
{ {
_logger = logger; this._logger = logger;
_blogRepository = blogRepository;
_mapper = mapper;
} }
[HttpGet("GetPostLikesAndViews")]
public async Task<ActionResult<PostMetricsDto>> GetPostLikesAndViews(string blogUrl, string postSlug)
{
var postMetrics = new PostMetricsDto();
if(!await _blogRepository.BlogExistsAsync(blogUrl))
{
_logger.LogInformation($"Blog with id {blogUrl} wasn't found when fetching post likes and views.");
return NotFound();
}
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
{
_logger.LogInformation($"Post with id {postSlug} wasn't found when fetching post likes and views.");
return Ok(postMetrics);
}
var post = await _blogRepository.GetPostAsync(blogUrl, postSlug);
post.Views++;
_blogRepository.UpdatePost(post);
await _blogRepository.SaveChangesAsync();
postMetrics = _mapper.Map<PostMetricsDto>(post);
postMetrics.PostExists = true;
return Ok(postMetrics);
}
[HttpPost("CreatePost")]
public async Task<ActionResult<PostMetricsDto>> CreatePost([FromBody] PostCreationDto post)
{
if (!await _blogRepository.BlogExistsAsync(post.BlogUrl))
{
_logger.LogInformation($"Blog with id {post.BlogUrl} wasn't found when fetching post likes and views.");
return NotFound();
}
var postEntityExists = await _blogRepository.GetPostAsync(post.BlogUrl, post.Slug);
if (postEntityExists == null)
{
postEntityExists = _mapper.Map<Post>(post);
postEntityExists.Views++;
_blogRepository.AddPost(postEntityExists);
}
else
{
postEntityExists.Title = post.Title;
postEntityExists.Description = post.Description;
postEntityExists.Categories = post.Categories;
_blogRepository.UpdatePost(postEntityExists);
}
await _blogRepository.SaveChangesAsync();
var postMetrics = _mapper.Map<PostMetricsDto>(postEntityExists);
postMetrics.PostExists = true;
return Ok(postMetrics);
}
[HttpPost("LikePost")]
public async Task<ActionResult<int>> LikePost(string blogUrl, string postSlug)
{
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
{
_logger.LogInformation($"Post with id {postSlug} wasn't found when fetching post likes and views.");
return NotFound();
}
var post = await _blogRepository.GetPostAsync(blogUrl, postSlug);
post.Likes++;
_blogRepository.UpdatePost(post);
await _blogRepository.SaveChangesAsync();
return Ok(post.Likes);
}
[HttpPost("DislikePost")]
public async Task<ActionResult<int>> DislikePost(string blogUrl, string postSlug)
{
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
{
_logger.LogInformation($"Post with id {postSlug} wasn't found when fetching post likes and views.");
return NotFound();
}
var post = await _blogRepository.GetPostAsync(blogUrl, postSlug);
post.Likes--;
_blogRepository.UpdatePost(post);
await _blogRepository.SaveChangesAsync();
return Ok(post.Likes);
}
[HttpPost("UpdatePostCommentsCount")]
public async Task<ActionResult> UpdatePostCommentsCount(string blogUrl, string postSlug, [FromBody] int commentsCount)
{
if (!await _blogRepository.PostExistsAsync(blogUrl, postSlug))
{
_logger.LogInformation($"Post with id {postSlug} wasn't found when fetching post likes and views.");
return NotFound();
}
var post = await _blogRepository.GetPostAsync(blogUrl, postSlug);
post.Comments = commentsCount;
_blogRepository.UpdatePost(post);
await _blogRepository.SaveChangesAsync();
return NoContent();
}
} }
} }

View File

@ -243,7 +243,7 @@ namespace PortBlog.API.Controllers
[ProducesResponseType(StatusCodes.Status400BadRequest)] [ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)] [ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status204NoContent)] [ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task<ActionResult<bool>> SendMessage(int candidateId, [FromBody] MessageDto message) public async Task<ActionResult> SendMessage(int candidateId, [FromBody] MessageDto message)
{ {
try try
{ {
@ -260,7 +260,7 @@ namespace PortBlog.API.Controllers
messageSendDto.CandidateName = candidateDto.DisplayName; messageSendDto.CandidateName = candidateDto.DisplayName;
messageSendDto.CandidateId = candidateDto.CandidateId; messageSendDto.CandidateId = candidateDto.CandidateId;
await _mailService.SendAsync(messageSendDto); await _mailService.SendAsync(messageSendDto);
return Ok(true); return NoContent();
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@ -54,7 +54,7 @@ namespace PortBlog.API.DbContexts.Seed
HobbyId = 1, HobbyId = 1,
Order = 1, Order = 1,
Name = "Web Development", Name = "Web Development",
Description = "Crafting Professional-Quality Websites with Precision.", Description = "Crafting Professional-Quality Websites with Precision",
Icon = "fa-square-terminal", Icon = "fa-square-terminal",
ResumeId = 1 ResumeId = 1
}, },
@ -63,7 +63,7 @@ namespace PortBlog.API.DbContexts.Seed
HobbyId = 2, HobbyId = 2,
Order = 2, Order = 2,
Name = "Automation", Name = "Automation",
Description = "Streamlining and Simplifying Complex Tasks through Automation.", Description = "Streamlining and Simplifying Complex Tasks through Automation",
Icon = "fa-robot", Icon = "fa-robot",
ResumeId = 1 ResumeId = 1
}, },
@ -72,7 +72,7 @@ namespace PortBlog.API.DbContexts.Seed
HobbyId = 3, HobbyId = 3,
Order = 3, Order = 3,
Name = "Blogging", Name = "Blogging",
Description = "Sharing the knowledge and insights Ive gathered along my journey.", Description = "Sharing the knowledge and insights Ive gathered along my journey",
Icon = "fa-typewriter", Icon = "fa-typewriter",
ResumeId = 1 ResumeId = 1
}, },
@ -80,9 +80,9 @@ namespace PortBlog.API.DbContexts.Seed
{ {
HobbyId = 4, HobbyId = 4,
Order = 4, Order = 4,
Name = "Technology", Name = "Gardening",
Description = "Exploring, embracing, and leveraging the latest advancements.", Description = "Cultivating Nature's Beauty and Bounty",
Icon = "fa-lightbulb-gear", Icon = "fa-seedling",
ResumeId = 1 ResumeId = 1
} }
}; };
@ -175,8 +175,8 @@ namespace PortBlog.API.DbContexts.Seed
ProjectId = 1, ProjectId = 1,
Name = "Transfora (Business Process Management)", Name = "Transfora (Business Process Management)",
Description = "Business Process Management", Description = "Business Process Management",
Categories = ["Web Development"], Category = "Web Development",
ImagePath = "bpm.jpg", ImagePath = "",
TechnologiesUsed = ".NET, Angular", TechnologiesUsed = ".NET, Angular",
Responsibilities = "Developing, Testing, Support", Responsibilities = "Developing, Testing, Support",
Roles = "Coding, Reviewing, Testing", Roles = "Coding, Reviewing, Testing",
@ -185,10 +185,10 @@ namespace PortBlog.API.DbContexts.Seed
new Project() new Project()
{ {
ProjectId = 2, ProjectId = 2,
Name = "Human Captial Management", Name = "Transfora (Business Process Management)",
Description = "Business Process Management", Description = "Business Process Management",
Categories = ["Web Design"], Category = "Web Development",
ImagePath = "hcm.jpg", ImagePath = "",
TechnologiesUsed = ".NET, Angular", TechnologiesUsed = ".NET, Angular",
Responsibilities = "Developing, Testing, Support", Responsibilities = "Developing, Testing, Support",
Roles = "Coding, Reviewing, Testing", Roles = "Coding, Reviewing, Testing",
@ -199,11 +199,11 @@ namespace PortBlog.API.DbContexts.Seed
ProjectId = 3, ProjectId = 3,
Name = "Transfora (Business Process Management)", Name = "Transfora (Business Process Management)",
Description = "Business Process Management", Description = "Business Process Management",
Categories = ["Web Development"], Category = "Web Development",
ImagePath = "hms.png", ImagePath = "",
TechnologiesUsed = ".NET, Angular", TechnologiesUsed = ".NET, Angular",
Responsibilities = "Hosting, Integrating, Monitoring", Responsibilities = "Developing, Testing, Support",
Roles = "Integration, Monitor", Roles = "Coding, Reviewing, Testing",
ResumeId = 1 ResumeId = 1
} }
}; };
@ -229,7 +229,7 @@ namespace PortBlog.API.DbContexts.Seed
Slug = "hello-world", Slug = "hello-world",
Title = "Hello World", Title = "Hello World",
Description = "Hello World", Description = "Hello World",
Categories = ["Welcome"], Category = "Welcome",
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
CreatedDate = DateTime.Now, CreatedDate = DateTime.Now,
BlogUrl = "https://bangararaju.kottedi.in/blog" BlogUrl = "https://bangararaju.kottedi.in/blog"
@ -240,7 +240,7 @@ namespace PortBlog.API.DbContexts.Seed
Slug = "hello-world", Slug = "hello-world",
Title = "Hello World", Title = "Hello World",
Description = "Hello World", Description = "Hello World",
Categories = ["Welcome"], Category = "Welcome",
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
CreatedDate = DateTime.Now, CreatedDate = DateTime.Now,
BlogUrl = "https://bangararaju.kottedi.in/blog" BlogUrl = "https://bangararaju.kottedi.in/blog"
@ -251,7 +251,7 @@ namespace PortBlog.API.DbContexts.Seed
Slug = "hello-world", Slug = "hello-world",
Title = "Hello World", Title = "Hello World",
Description = "Hello World", Description = "Hello World",
Categories = ["Welcome"], Category = "Welcome",
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
CreatedDate = DateTime.Now, CreatedDate = DateTime.Now,
BlogUrl = "https://bangararaju.kottedi.in/blog", BlogUrl = "https://bangararaju.kottedi.in/blog",

View File

@ -22,8 +22,8 @@ namespace PortBlog.API.Entities
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
[Required] [Required]
[MaxLength(200)] [MaxLength(100)]
public string[] Categories { get; set; } = []; public string Category { get; set; } = string.Empty;
[MaxLength(100)] [MaxLength(100)]
public string? Author { get; set; } public string? Author { get; set; }

View File

@ -18,8 +18,8 @@ namespace PortBlog.API.Entities
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
[Required] [Required]
[MaxLength(200)] [MaxLength(100)]
public string[] Categories { get; set; } = []; public string Category { get; set; } = string.Empty;
[Required] [Required]
[MaxLength(100)] [MaxLength(100)]

View File

@ -12,7 +12,6 @@ namespace PortBlog.API.Extensions
services.AddScoped<ICandidateRepository, CandidateRepository>(); services.AddScoped<ICandidateRepository, CandidateRepository>();
services.AddScoped<IResumeRepository, ResumeRepository>(); services.AddScoped<IResumeRepository, ResumeRepository>();
services.AddScoped<IMailRepository, MailRepository>(); services.AddScoped<IMailRepository, MailRepository>();
services.AddScoped<IBlogRepository, BlogRepository>();
return services; return services;
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,547 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class ProjectAndPostChanges : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Category",
table: "Projects");
migrationBuilder.DropColumn(
name: "Category",
table: "Posts");
migrationBuilder.AddColumn<string>(
name: "Categories",
table: "Projects",
type: "varchar(200)",
maxLength: 200,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Categories",
table: "Posts",
type: "varchar(200)",
maxLength: 200,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5877), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5895) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6336), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6337) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6339), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6340) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6344), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6345) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6307), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6308) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6134), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6135) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6269), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6266) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6274), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6273) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6277), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6276) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6218), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6219) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6224), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6225) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6194), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6195) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Categories",
table: "Projects");
migrationBuilder.DropColumn(
name: "Categories",
table: "Posts");
migrationBuilder.AddColumn<string>(
name: "Category",
table: "Projects",
type: "varchar(100)",
maxLength: 100,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Category",
table: "Posts",
type: "varchar(100)",
maxLength: 100,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4502), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4503) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4614), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4615) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4300), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4316) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4700), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4701) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4706), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4707) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4663), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4664) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4636), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4634) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4641), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4639) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4643), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4642) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4590), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4591) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "Category", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4566), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4567) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453), new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453) });
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,495 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class categorycolumnchanges : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3707), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3707) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3710), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3711) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3712), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3713) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3796), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3796) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3501), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3517) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3896), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3896) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3899), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3899) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3900), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3901) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3902), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3902) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3903), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3904) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3905), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3906) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3907), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3907) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3908), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3909) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3858), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3859) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3863), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3864) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3866), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3867) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3869), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3869) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3673), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3673) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3678), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3678) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3680), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3680) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3682), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3682) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Welcome\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3816), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3812) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Welcome\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3821), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3819) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Welcome\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3824), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3823) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Web Development\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3769), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3769) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Web Development\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3774), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3774) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "[\"Web Development\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3777), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3777) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3630), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3630) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3735), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3736) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3738), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3739) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3740), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3741) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3742), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3742) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3743), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3743) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3652), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3652) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6162) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6166) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6168) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6248) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5877), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(5895) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6333) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6336), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6337) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6338) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6339), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6340) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6341) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6343) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6344), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6345) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6346) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6297) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6302) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6305) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6307), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6308) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6128) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6134), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6135) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6137) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6139) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6269), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6266) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6274), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6273) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Welcome", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6277), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6276) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6218), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6219) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6224), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6225) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "Categories", "CreatedDate", "ModifiedDate" },
values: new object[] { "Web Development", new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6227) });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6082) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6187) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6191) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6193) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6194), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6195) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6196) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106), new DateTime(2024, 5, 2, 14, 46, 47, 828, DateTimeKind.Local).AddTicks(6106) });
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,495 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PortBlog.API.Migrations
{
/// <inheritdoc />
public partial class Dataupdate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8945), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8945) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8948), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8949) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8950), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8951) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9023), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9023) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8726), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8742) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9096), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9096) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9099), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9100) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9101), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9101) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9102), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9102) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9103), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9103) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9105), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9105) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9106), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9106) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9107), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9108) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9068), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9068) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9072), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9073) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9075), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9075) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9077), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9077) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8912), "Crafting Professional-Quality Websites with Precision.", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8913) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8917), "Streamlining and Simplifying Complex Tasks through Automation.", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8918) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8919), "Sharing the knowledge and insights Ive gathered along my journey.", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8919) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "Description", "Icon", "ModifiedDate", "Name" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8921), "Exploring, embracing, and leveraging the latest advancements.", "fa-lightbulb-gear", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8921), "Technology" });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9042), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9038) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9047), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9045) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9049), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9048) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ImagePath", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8997), "bpm.jpg", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8997) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ImagePath", "ModifiedDate", "Name" },
values: new object[] { "[\"Web Design\"]", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9003), "hcm.jpg", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9003), "Human Captial Management" });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ImagePath", "ModifiedDate", "Responsibilities", "Roles" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9006), "hms.png", new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9006), "Hosting, Integrating, Monitoring", "Integration, Monitor" });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8874), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8874) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8968), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8968) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8971), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8972) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8973), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8973) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8974), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8974) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8975), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8976) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8894), new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8895) });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3707), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3707) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3710), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3711) });
migrationBuilder.UpdateData(
table: "Academics",
keyColumn: "AcademicId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3712), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3713) });
migrationBuilder.UpdateData(
table: "Blogs",
keyColumn: "BlogUrl",
keyValue: "https://bangararaju.kottedi.in/blog",
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3796), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3796) });
migrationBuilder.UpdateData(
table: "Candidates",
keyColumn: "CandidateId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3501), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3517) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3896), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3896) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3899), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3899) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3900), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3901) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3902), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3902) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3903), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3904) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 6,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3905), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3906) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 7,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3907), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3907) });
migrationBuilder.UpdateData(
table: "ExperienceDetails",
keyColumn: "Id",
keyValue: 8,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3908), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3909) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3858), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3859) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3863), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3864) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3866), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3867) });
migrationBuilder.UpdateData(
table: "Experiences",
keyColumn: "ExperienceId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3869), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3869) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 1,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3673), "Crafting Professional-Quality Websites with Precision", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3673) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 2,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3678), "Streamlining and Simplifying Complex Tasks through Automation", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3678) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 3,
columns: new[] { "CreatedDate", "Description", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3680), "Sharing the knowledge and insights Ive gathered along my journey", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3680) });
migrationBuilder.UpdateData(
table: "Hobbies",
keyColumn: "HobbyId",
keyValue: 4,
columns: new[] { "CreatedDate", "Description", "Icon", "ModifiedDate", "Name" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3682), "Cultivating Nature's Beauty and Bounty", "fa-seedling", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3682), "Gardening" });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3816), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3812) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3821), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3819) });
migrationBuilder.UpdateData(
table: "Posts",
keyColumn: "PostId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3824), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3823) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 1,
columns: new[] { "CreatedDate", "ImagePath", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3769), "", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3769) });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 2,
columns: new[] { "Categories", "CreatedDate", "ImagePath", "ModifiedDate", "Name" },
values: new object[] { "[\"Web Development\"]", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3774), "", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3774), "Transfora (Business Process Management)" });
migrationBuilder.UpdateData(
table: "Projects",
keyColumn: "ProjectId",
keyValue: 3,
columns: new[] { "CreatedDate", "ImagePath", "ModifiedDate", "Responsibilities", "Roles" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3777), "", new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3777), "Developing, Testing, Support", "Coding, Reviewing, Testing" });
migrationBuilder.UpdateData(
table: "Resumes",
keyColumn: "ResumeId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3630), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3630) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3735), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3736) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 2,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3738), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3739) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 3,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3740), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3741) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 4,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3742), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3742) });
migrationBuilder.UpdateData(
table: "Skills",
keyColumn: "SkillId",
keyValue: 5,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3743), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3743) });
migrationBuilder.UpdateData(
table: "SocialLinks",
keyColumn: "Id",
keyValue: 1,
columns: new[] { "CreatedDate", "ModifiedDate" },
values: new object[] { new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3652), new DateTime(2024, 5, 6, 22, 33, 10, 710, DateTimeKind.Local).AddTicks(3652) });
}
}
}

View File

@ -75,35 +75,35 @@ namespace PortBlog.API.Migrations
new new
{ {
AcademicId = 1, AcademicId = 1,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8945), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4502),
Degree = "High School", Degree = "High School",
EndYear = 2007, EndYear = 2007,
Institution = "Pragati Little Public School", Institution = "Pragati Little Public School",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8945), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4503),
ResumeId = 1, ResumeId = 1,
StartYear = 2006 StartYear = 2006
}, },
new new
{ {
AcademicId = 2, AcademicId = 2,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8948), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505),
Degree = "Intermediate", Degree = "Intermediate",
DegreeSpecialization = "MPC", DegreeSpecialization = "MPC",
EndYear = 2009, EndYear = 2009,
Institution = "Sri Chaitanya Junior College", Institution = "Sri Chaitanya Junior College",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8949), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4505),
ResumeId = 1, ResumeId = 1,
StartYear = 2007 StartYear = 2007
}, },
new new
{ {
AcademicId = 3, AcademicId = 3,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8950), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538),
Degree = "BTech", Degree = "BTech",
DegreeSpecialization = "ECE", DegreeSpecialization = "ECE",
EndYear = 2013, EndYear = 2013,
Institution = "Kakinada Institute of Technology & Science", Institution = "Kakinada Institute of Technology & Science",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8951), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4538),
ResumeId = 1, ResumeId = 1,
StartYear = 2009 StartYear = 2009
}); });
@ -144,9 +144,9 @@ namespace PortBlog.API.Migrations
new new
{ {
BlogUrl = "https://bangararaju.kottedi.in/blog", BlogUrl = "https://bangararaju.kottedi.in/blog",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9023), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4614),
Description = "Your Hub for Tech, DIY, and Innovation", Description = "Your Hub for Tech, DIY, and Innovation",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9023), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4615),
Name = "Engineer's Odyssey" Name = "Engineer's Odyssey"
}); });
}); });
@ -213,13 +213,13 @@ namespace PortBlog.API.Migrations
{ {
CandidateId = 1, CandidateId = 1,
Address = "Samalkot, Andhra Pradesh, India", Address = "Samalkot, Andhra Pradesh, India",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8726), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4300),
Dob = new DateTime(1992, 5, 6, 0, 0, 0, 0, DateTimeKind.Unspecified), Dob = new DateTime(1992, 5, 6, 0, 0, 0, 0, DateTimeKind.Unspecified),
Email = "bangararaju.kottedi@gmail.com", Email = "bangararaju.kottedi@gmail.com",
FirstName = "Bangara Raju", FirstName = "Bangara Raju",
Gender = "Male", Gender = "Male",
LastName = "Kottedi", LastName = "Kottedi",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8742), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4316),
Phone = "+91 9441212187" Phone = "+91 9441212187"
}); });
}); });
@ -366,11 +366,11 @@ namespace PortBlog.API.Migrations
{ {
ExperienceId = 1, ExperienceId = 1,
Company = "Agility E Services", Company = "Agility E Services",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9068), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4663),
Description = "", Description = "",
EndDate = new DateTime(2016, 4, 25, 0, 0, 0, 0, DateTimeKind.Unspecified), EndDate = new DateTime(2016, 4, 25, 0, 0, 0, 0, DateTimeKind.Unspecified),
Location = "Hyderabad", Location = "Hyderabad",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9068), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4664),
ResumeId = 1, ResumeId = 1,
StartDate = new DateTime(2015, 9, 2, 0, 0, 0, 0, DateTimeKind.Unspecified), StartDate = new DateTime(2015, 9, 2, 0, 0, 0, 0, DateTimeKind.Unspecified),
Title = "Jr. Software Engineer" Title = "Jr. Software Engineer"
@ -379,11 +379,11 @@ namespace PortBlog.API.Migrations
{ {
ExperienceId = 2, ExperienceId = 2,
Company = "Agility", Company = "Agility",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9072), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668),
Description = "", Description = "",
EndDate = new DateTime(2022, 1, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), EndDate = new DateTime(2022, 1, 31, 0, 0, 0, 0, DateTimeKind.Unspecified),
Location = "Kuwait", Location = "Kuwait",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9073), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4668),
ResumeId = 1, ResumeId = 1,
StartDate = new DateTime(2016, 5, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), StartDate = new DateTime(2016, 5, 12, 0, 0, 0, 0, DateTimeKind.Unspecified),
Title = "Web Developer" Title = "Web Developer"
@ -392,11 +392,11 @@ namespace PortBlog.API.Migrations
{ {
ExperienceId = 3, ExperienceId = 3,
Company = "Agility", Company = "Agility",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9075), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671),
Description = "", Description = "",
EndDate = new DateTime(2022, 10, 31, 0, 0, 0, 0, DateTimeKind.Unspecified), EndDate = new DateTime(2022, 10, 31, 0, 0, 0, 0, DateTimeKind.Unspecified),
Location = "Kuwait", Location = "Kuwait",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9075), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4671),
ResumeId = 1, ResumeId = 1,
StartDate = new DateTime(2022, 2, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), StartDate = new DateTime(2022, 2, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
Title = "Senior Web Developer" Title = "Senior Web Developer"
@ -405,11 +405,11 @@ namespace PortBlog.API.Migrations
{ {
ExperienceId = 4, ExperienceId = 4,
Company = "Agility E Services", Company = "Agility E Services",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9077), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673),
Description = "", Description = "",
EndDate = new DateTime(2024, 4, 12, 0, 0, 0, 0, DateTimeKind.Unspecified), EndDate = new DateTime(2024, 4, 12, 0, 0, 0, 0, DateTimeKind.Unspecified),
Location = "Hyderabad", Location = "Hyderabad",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9077), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4673),
ResumeId = 1, ResumeId = 1,
StartDate = new DateTime(2022, 11, 4, 0, 0, 0, 0, DateTimeKind.Unspecified), StartDate = new DateTime(2022, 11, 4, 0, 0, 0, 0, DateTimeKind.Unspecified),
Title = "Technology Specialist" Title = "Technology Specialist"
@ -457,73 +457,73 @@ namespace PortBlog.API.Migrations
new new
{ {
Id = 1, Id = 1,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9096), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696),
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
ExperienceId = 1, ExperienceId = 1,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9096), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4696),
Order = 1 Order = 1
}, },
new new
{ {
Id = 2, Id = 2,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9099), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699),
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
ExperienceId = 1, ExperienceId = 1,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9100), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4699),
Order = 2 Order = 2
}, },
new new
{ {
Id = 3, Id = 3,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9101), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4700),
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
ExperienceId = 2, ExperienceId = 2,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9101), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4701),
Order = 1 Order = 1
}, },
new new
{ {
Id = 4, Id = 4,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9102), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702),
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
ExperienceId = 2, ExperienceId = 2,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9102), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4702),
Order = 2 Order = 2
}, },
new new
{ {
Id = 5, Id = 5,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9103), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703),
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
ExperienceId = 3, ExperienceId = 3,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9103), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4703),
Order = 1 Order = 1
}, },
new new
{ {
Id = 6, Id = 6,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9105), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705),
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
ExperienceId = 3, ExperienceId = 3,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9105), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4705),
Order = 2 Order = 2
}, },
new new
{ {
Id = 7, Id = 7,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9106), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4706),
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
ExperienceId = 4, ExperienceId = 4,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9106), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4707),
Order = 1 Order = 1
}, },
new new
{ {
Id = 8, Id = 8,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9107), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708),
Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.", Details = "Worked on the YouTube Captions team, in Javascript and Python to plan, to design and develop the full stack to add and edit Automatic Speech Recognition captions.",
ExperienceId = 4, ExperienceId = 4,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9108), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4708),
Order = 2 Order = 2
}); });
}); });
@ -578,10 +578,10 @@ namespace PortBlog.API.Migrations
new new
{ {
HobbyId = 1, HobbyId = 1,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8912), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471),
Description = "Crafting Professional-Quality Websites with Precision.", Description = "Crafting Professional-Quality Websites with Precision",
Icon = "fa-square-terminal", Icon = "fa-square-terminal",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8913), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4471),
Name = "Web Development", Name = "Web Development",
Order = 1, Order = 1,
ResumeId = 1 ResumeId = 1
@ -589,10 +589,10 @@ namespace PortBlog.API.Migrations
new new
{ {
HobbyId = 2, HobbyId = 2,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8917), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476),
Description = "Streamlining and Simplifying Complex Tasks through Automation.", Description = "Streamlining and Simplifying Complex Tasks through Automation",
Icon = "fa-robot", Icon = "fa-robot",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8918), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4476),
Name = "Automation", Name = "Automation",
Order = 2, Order = 2,
ResumeId = 1 ResumeId = 1
@ -600,10 +600,10 @@ namespace PortBlog.API.Migrations
new new
{ {
HobbyId = 3, HobbyId = 3,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8919), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478),
Description = "Sharing the knowledge and insights Ive gathered along my journey.", Description = "Sharing the knowledge and insights Ive gathered along my journey",
Icon = "fa-typewriter", Icon = "fa-typewriter",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8919), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4478),
Name = "Blogging", Name = "Blogging",
Order = 3, Order = 3,
ResumeId = 1 ResumeId = 1
@ -611,11 +611,11 @@ namespace PortBlog.API.Migrations
new new
{ {
HobbyId = 4, HobbyId = 4,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8921), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480),
Description = "Exploring, embracing, and leveraging the latest advancements.", Description = "Cultivating Nature's Beauty and Bounty",
Icon = "fa-lightbulb-gear", Icon = "fa-seedling",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8921), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4480),
Name = "Technology", Name = "Gardening",
Order = 4, Order = 4,
ResumeId = 1 ResumeId = 1
}); });
@ -687,10 +687,10 @@ namespace PortBlog.API.Migrations
.HasMaxLength(200) .HasMaxLength(200)
.HasColumnType("varchar(200)"); .HasColumnType("varchar(200)");
b.Property<string>("Categories") b.Property<string>("Category")
.IsRequired() .IsRequired()
.HasMaxLength(200) .HasMaxLength(100)
.HasColumnType("varchar(200)"); .HasColumnType("varchar(100)");
b.Property<int>("Comments") b.Property<int>("Comments")
.HasColumnType("int"); .HasColumnType("int");
@ -748,12 +748,12 @@ namespace PortBlog.API.Migrations
{ {
PostId = 1, PostId = 1,
BlogUrl = "https://bangararaju.kottedi.in/blog", BlogUrl = "https://bangararaju.kottedi.in/blog",
Categories = "[\"Welcome\"]", Category = "Welcome",
Comments = 0, Comments = 0,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9042), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4636),
Description = "Hello World", Description = "Hello World",
Likes = 0, Likes = 0,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9038), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4634),
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
Slug = "hello-world", Slug = "hello-world",
Title = "Hello World", Title = "Hello World",
@ -763,12 +763,12 @@ namespace PortBlog.API.Migrations
{ {
PostId = 2, PostId = 2,
BlogUrl = "https://bangararaju.kottedi.in/blog", BlogUrl = "https://bangararaju.kottedi.in/blog",
Categories = "[\"Welcome\"]", Category = "Welcome",
Comments = 0, Comments = 0,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9047), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4641),
Description = "Hello World", Description = "Hello World",
Likes = 0, Likes = 0,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9045), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4639),
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
Slug = "hello-world", Slug = "hello-world",
Title = "Hello World", Title = "Hello World",
@ -778,12 +778,12 @@ namespace PortBlog.API.Migrations
{ {
PostId = 3, PostId = 3,
BlogUrl = "https://bangararaju.kottedi.in/blog", BlogUrl = "https://bangararaju.kottedi.in/blog",
Categories = "[\"Welcome\"]", Category = "Welcome",
Comments = 0, Comments = 0,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9049), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4643),
Description = "Hello World", Description = "Hello World",
Likes = 0, Likes = 0,
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9048), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4642),
PostUrl = "https://bangararaju.kottedi.in/blog/hello-world", PostUrl = "https://bangararaju.kottedi.in/blog/hello-world",
Slug = "hello-world", Slug = "hello-world",
Title = "Hello World", Title = "Hello World",
@ -799,10 +799,10 @@ namespace PortBlog.API.Migrations
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ProjectId")); MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ProjectId"));
b.Property<string>("Categories") b.Property<string>("Category")
.IsRequired() .IsRequired()
.HasMaxLength(200) .HasMaxLength(100)
.HasColumnType("varchar(200)"); .HasColumnType("varchar(100)");
b.Property<string>("Challenges") b.Property<string>("Challenges")
.HasMaxLength(200) .HasMaxLength(200)
@ -880,11 +880,11 @@ namespace PortBlog.API.Migrations
new new
{ {
ProjectId = 1, ProjectId = 1,
Categories = "[\"Web Development\"]", Category = "Web Development",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8997), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586),
Description = "Business Process Management", Description = "Business Process Management",
ImagePath = "bpm.jpg", ImagePath = "",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8997), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4586),
Name = "Transfora (Business Process Management)", Name = "Transfora (Business Process Management)",
Responsibilities = "Developing, Testing, Support", Responsibilities = "Developing, Testing, Support",
ResumeId = 1, ResumeId = 1,
@ -894,12 +894,12 @@ namespace PortBlog.API.Migrations
new new
{ {
ProjectId = 2, ProjectId = 2,
Categories = "[\"Web Design\"]", Category = "Web Development",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9003), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4590),
Description = "Business Process Management", Description = "Business Process Management",
ImagePath = "hcm.jpg", ImagePath = "",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9003), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4591),
Name = "Human Captial Management", Name = "Transfora (Business Process Management)",
Responsibilities = "Developing, Testing, Support", Responsibilities = "Developing, Testing, Support",
ResumeId = 1, ResumeId = 1,
Roles = "Coding, Reviewing, Testing", Roles = "Coding, Reviewing, Testing",
@ -908,15 +908,15 @@ namespace PortBlog.API.Migrations
new new
{ {
ProjectId = 3, ProjectId = 3,
Categories = "[\"Web Development\"]", Category = "Web Development",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9006), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593),
Description = "Business Process Management", Description = "Business Process Management",
ImagePath = "hms.png", ImagePath = "",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(9006), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4593),
Name = "Transfora (Business Process Management)", Name = "Transfora (Business Process Management)",
Responsibilities = "Hosting, Integrating, Monitoring", Responsibilities = "Developing, Testing, Support",
ResumeId = 1, ResumeId = 1,
Roles = "Integration, Monitor", Roles = "Coding, Reviewing, Testing",
TechnologiesUsed = ".NET, Angular" TechnologiesUsed = ".NET, Angular"
}); });
}); });
@ -969,8 +969,8 @@ namespace PortBlog.API.Migrations
ResumeId = 1, ResumeId = 1,
About = "I'm Full Stack Developer with 8+ years of hands-on experience in .NET development. Passionate and driven professional with expertise in .NET WebAPI, Angular, CI/CD, and a growing proficiency in Azure. I've successfully delivered robust applications, prioritizing efficiency and user experience. While I'm currently in the early stages of exploring Azure, I'm eager to expand my skill set and leverage cloud technologies to enhance scalability and performance. Known for my proactive approach and dedication to continuous learning, I'm committed to staying abreast of the latest technologies and methodologies to drive innovation and deliver exceptional results.", About = "I'm Full Stack Developer with 8+ years of hands-on experience in .NET development. Passionate and driven professional with expertise in .NET WebAPI, Angular, CI/CD, and a growing proficiency in Azure. I've successfully delivered robust applications, prioritizing efficiency and user experience. While I'm currently in the early stages of exploring Azure, I'm eager to expand my skill set and leverage cloud technologies to enhance scalability and performance. Known for my proactive approach and dedication to continuous learning, I'm committed to staying abreast of the latest technologies and methodologies to drive innovation and deliver exceptional results.",
CandidateId = 1, CandidateId = 1,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8874), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431),
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8874), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4431),
Order = 1, Order = 1,
Title = "Full Stack Developer" Title = "Full Stack Developer"
}); });
@ -1071,8 +1071,8 @@ namespace PortBlog.API.Migrations
new new
{ {
SkillId = 1, SkillId = 1,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8968), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559),
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8968), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4559),
Name = "Web Development", Name = "Web Development",
ProficiencyLevel = 80, ProficiencyLevel = 80,
ResumeId = 1 ResumeId = 1
@ -1080,8 +1080,8 @@ namespace PortBlog.API.Migrations
new new
{ {
SkillId = 2, SkillId = 2,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8971), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562),
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8972), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4562),
Name = "Web Development", Name = "Web Development",
ProficiencyLevel = 80, ProficiencyLevel = 80,
ResumeId = 1 ResumeId = 1
@ -1089,8 +1089,8 @@ namespace PortBlog.API.Migrations
new new
{ {
SkillId = 3, SkillId = 3,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8973), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564),
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8973), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4564),
Name = "Web Development", Name = "Web Development",
ProficiencyLevel = 80, ProficiencyLevel = 80,
ResumeId = 1 ResumeId = 1
@ -1098,8 +1098,8 @@ namespace PortBlog.API.Migrations
new new
{ {
SkillId = 4, SkillId = 4,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8974), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565),
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8974), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4565),
Name = "Web Development", Name = "Web Development",
ProficiencyLevel = 80, ProficiencyLevel = 80,
ResumeId = 1 ResumeId = 1
@ -1107,8 +1107,8 @@ namespace PortBlog.API.Migrations
new new
{ {
SkillId = 5, SkillId = 5,
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8975), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4566),
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8976), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4567),
Name = "Web Development", Name = "Web Development",
ProficiencyLevel = 80, ProficiencyLevel = 80,
ResumeId = 1 ResumeId = 1
@ -1181,10 +1181,10 @@ namespace PortBlog.API.Migrations
{ {
Id = 1, Id = 1,
BlogUrl = "https://bangararaju.kottedi.in/blog", BlogUrl = "https://bangararaju.kottedi.in/blog",
CreatedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8894), CreatedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453),
GitHub = "https://github.com/rajukottedi", GitHub = "https://github.com/rajukottedi",
Linkedin = "https://in.linkedin.com/in/bangara-raju-kottedi-299072109", Linkedin = "https://in.linkedin.com/in/bangara-raju-kottedi-299072109",
ModifiedDate = new DateTime(2024, 5, 7, 23, 8, 7, 980, DateTimeKind.Local).AddTicks(8895), ModifiedDate = new DateTime(2024, 4, 30, 20, 35, 41, 984, DateTimeKind.Local).AddTicks(4453),
ResumeId = 1 ResumeId = 1
}); });
}); });

View File

@ -66,12 +66,7 @@
{ {
get get
{ {
var projectCategories = new List<string>(); return Projects.Select(p => p.Category).Distinct().ToList();
foreach (var project in Projects)
{
projectCategories.AddRange(project.Categories);
}
return projectCategories.Distinct().ToList();
} }
} }
} }

View File

@ -11,7 +11,7 @@ namespace PortBlog.API.Models
[Required(ErrorMessage = "You should provide an email.")] [Required(ErrorMessage = "You should provide an email.")]
[EmailAddress] [EmailAddress]
[MaxLength(100)] [MaxLength(100)]
public string Email { get; set; } = string.Empty; public string FromEmail { get; set; } = string.Empty;
[Required(ErrorMessage = "Message cannot be empty.")] [Required(ErrorMessage = "Message cannot be empty.")]
[MaxLength(500)] [MaxLength(500)]

View File

@ -1,31 +0,0 @@
namespace PortBlog.API.Models
{
public class PostCreationDto
{
public int PostId { get; set; }
public string Slug { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string[] Categories { get; set; } = [];
public string PostUrl { get; set; } = string.Empty;
public int? Likes { get; set; } = 0;
public int? Views { get; set; } = 0;
public int? Comments { get; set; } = 0;
public string? Image { get; set; }
public string? CreatedDate { get; set; }
public string? ModifiedDate { get; set; }
public string BlogUrl { get; set;} = string.Empty;
}
}

View File

@ -10,7 +10,7 @@
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
public string[] Categories { get; set; } = []; public string Category { get; set; } = string.Empty;
public string PostUrl { get; set; } = string.Empty; public string PostUrl { get; set; } = string.Empty;

View File

@ -1,13 +0,0 @@
namespace PortBlog.API.Models
{
public class PostMetricsDto
{
public int Likes { get; set; } = 0;
public int Views { get; set; } = 0;
public int Comments { get; set; } = 0;
public bool PostExists { get; set; } = false;
}
}

View File

@ -10,9 +10,7 @@ namespace PortBlog.API.Models
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
public string[] Categories { get; set; } = []; public string Category { get; set; } = string.Empty;
//public ICollection<string> CategoryList { get; set; } = new List<string>();
public ICollection<string> Roles { get; set; } = new List<string>(); public ICollection<string> Roles { get; set; } = new List<string>();

View File

@ -8,12 +8,7 @@
{ {
get get
{ {
var projectCategories = new List<string>(); return Projects.Select(p => p.Category).Distinct().ToList();
foreach(var project in Projects)
{
projectCategories.AddRange(project.Categories);
}
return projectCategories.Distinct().ToList();
} }
} }
} }

View File

@ -145,117 +145,41 @@
<member name="M:PortBlog.API.Migrations.MessageChanges.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)"> <member name="M:PortBlog.API.Migrations.MessageChanges.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
<inheritdoc /> <inheritdoc />
</member> </member>
<member name="T:PortBlog.API.Migrations.ProjectAndPostChanges"> <member name="T:PortBlog.API.Models.ResumeDto">
<inheritdoc />
</member>
<member name="M:PortBlog.API.Migrations.ProjectAndPostChanges.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
<inheritdoc />
</member>
<member name="M:PortBlog.API.Migrations.ProjectAndPostChanges.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
<inheritdoc />
</member>
<member name="M:PortBlog.API.Migrations.ProjectAndPostChanges.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
<inheritdoc />
</member>
<member name="T:PortBlog.API.Migrations.categorycolumnchanges">
<inheritdoc />
</member>
<member name="M:PortBlog.API.Migrations.categorycolumnchanges.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
<inheritdoc />
</member>
<member name="M:PortBlog.API.Migrations.categorycolumnchanges.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
<inheritdoc />
</member>
<member name="M:PortBlog.API.Migrations.categorycolumnchanges.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
<inheritdoc />
</member>
<member name="T:PortBlog.API.Migrations.Dataupdate">
<inheritdoc />
</member>
<member name="M:PortBlog.API.Migrations.Dataupdate.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
<inheritdoc />
</member>
<member name="M:PortBlog.API.Migrations.Dataupdate.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
<inheritdoc />
</member>
<member name="M:PortBlog.API.Migrations.Dataupdate.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
<inheritdoc />
</member>
<member name="T:PortBlog.API.Models.CvDto">
<summary> <summary>
CV details of the candidate CV details of the candidate
</summary> </summary>
</member> </member>
<member name="P:PortBlog.API.Models.CvDto.ResumeId"> <member name="P:PortBlog.API.Models.ResumeDto.ResumeId">
<summary> <summary>
The id of the cv The id of the cv
</summary> </summary>
</member> </member>
<member name="P:PortBlog.API.Models.CvDto.Title"> <member name="P:PortBlog.API.Models.ResumeDto.Title">
<summary> <summary>
The title of the candidate The title of the candidate
</summary> </summary>
</member> </member>
<member name="P:PortBlog.API.Models.CvDto.About"> <member name="P:PortBlog.API.Models.ResumeDto.About">
<summary> <summary>
A brief description about the candidate A brief description about the candidate
</summary> </summary>
</member> </member>
<member name="P:PortBlog.API.Models.CvDto.Candidate"> <member name="P:PortBlog.API.Models.ResumeDto.Candidate">
<summary> <summary>
Candidate's information Candidate's information
</summary> </summary>
</member> </member>
<member name="P:PortBlog.API.Models.CvDto.SocialLinks"> <member name="P:PortBlog.API.Models.ResumeDto.SocialLinks">
<summary> <summary>
Candidate's Social Media links Candidate's Social Media links
</summary> </summary>
</member> </member>
<member name="P:PortBlog.API.Models.CvDto.Posts"> <member name="P:PortBlog.API.Models.ResumeDto.Posts">
<summary> <summary>
Candidate's blog posts Candidate's blog posts
</summary> </summary>
</member> </member>
<member name="P:PortBlog.API.Models.CvDto.Academics">
<summary>
The education details of the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.CvDto.Skills">
<summary>
The skills of the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.CvDto.Experiences">
<summary>
The work experiences of the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.CvDto.Certifications">
<summary>
The certifications done by the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.CvDto.Hobbies">
<summary>
The hobbies of the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.CvDto.Projects">
<summary>
The projects of the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.CvDto.ProjectsCategories">
<summary>
The project categories of all the projects
</summary>
</member>
<member name="T:PortBlog.API.Models.ResumeDto">
<summary>
CV details of the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.ResumeDto.Academics"> <member name="P:PortBlog.API.Models.ResumeDto.Academics">
<summary> <summary>
The education details of the candidate The education details of the candidate
@ -271,5 +195,25 @@
The work experiences of the candidate The work experiences of the candidate
</summary> </summary>
</member> </member>
<member name="P:PortBlog.API.Models.ResumeDto.Certifications">
<summary>
The certifications done by the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.ResumeDto.Hobbies">
<summary>
The hobbies of the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.ResumeDto.Projects">
<summary>
The projects of the candidate
</summary>
</member>
<member name="P:PortBlog.API.Models.ResumeDto.ProjectsCategories">
<summary>
The project categories of all the projects
</summary>
</member>
</members> </members>
</doc> </doc>

View File

@ -16,10 +16,8 @@ namespace PortBlog.API.Profiles
) )
.ForMember( .ForMember(
dest => dest.ModifiedDate, dest => dest.ModifiedDate,
opts => opts.MapFrom(src => !string.IsNullOrEmpty(src.ModifiedDate.ToString()) ? src.ModifiedDate.Value.ToString("MMM dd, yyyy") : string.Empty) opts => opts.MapFrom(src => src.CreatedDate != null ? src.ModifiedDate.Value.ToString("MMM dd, yyyy") : string.Empty)
); );
CreateMap<Post, PostMetricsDto>();
CreateMap<PostCreationDto, Post>();
} }
} }
} }

View File

@ -41,19 +41,18 @@ namespace PortBlog.API.Profiles
.ForMember .ForMember
( (
dest => dest.Roles, dest => dest.Roles,
src => src.MapFrom(src => !string.IsNullOrEmpty(src.Roles) ? src.Roles.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToList() : new List<string>()) src => src.MapFrom(src => !string.IsNullOrEmpty(src.Roles) ? src.Roles.Split(",", StringSplitOptions.RemoveEmptyEntries).ToList() : new List<string>())
) )
.ForMember .ForMember
( (
dest => dest.Responsibilities, dest => dest.Responsibilities,
src => src.MapFrom(src => !string.IsNullOrEmpty(src.Responsibilities) ? src.Responsibilities.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToList() : new List<string>()) src => src.MapFrom(src => !string.IsNullOrEmpty(src.Responsibilities) ? src.Responsibilities.Split(",", StringSplitOptions.RemoveEmptyEntries).ToList() : new List<string>())
) )
.ForMember .ForMember
( (
dest => dest.TechnologiesUsed, dest => dest.TechnologiesUsed,
src => src.MapFrom(src => !string.IsNullOrEmpty(src.TechnologiesUsed) ? src.TechnologiesUsed.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).ToList() : new List<string>()) src => src.MapFrom(src => !string.IsNullOrEmpty(src.TechnologiesUsed) ? src.TechnologiesUsed.Split(",", StringSplitOptions.RemoveEmptyEntries).ToList() : new List<string>())
); );
CreateMap<Skill, SkillDto>(); CreateMap<Skill, SkillDto>();
CreateMap<SocialLinks, SocialLinksDto>() CreateMap<SocialLinks, SocialLinksDto>()
.ForMember .ForMember
@ -66,12 +65,7 @@ namespace PortBlog.API.Profiles
CreateMap<Resume, AboutDto>(); CreateMap<Resume, AboutDto>();
CreateMap<Resume, CandidateSocialLinksDto>(); CreateMap<Resume, CandidateSocialLinksDto>();
CreateMap<Resume, ProjectsDto>(); CreateMap<Resume, ProjectsDto>();
CreateMap<MessageDto, MessageSendDto>() CreateMap<MessageDto, MessageSendDto>();
.ForMember
(
dest => dest.FromEmail,
src => src.MapFrom(src => src.Email)
);
CreateMap<MessageSendDto, Message>(); CreateMap<MessageSendDto, Message>();
} }
} }

View File

@ -9,25 +9,13 @@ using PortBlog.API.Middleware;
using Serilog; using Serilog;
using System.Reflection; using System.Reflection;
Log.Logger = new LoggerConfiguration()
var builder = WebApplication.CreateBuilder(args);
if (builder.Environment.IsDevelopment())
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug() .MinimumLevel.Debug()
.WriteTo.Console() .WriteTo.Console()
.WriteTo.File("logs/portblog.txt", rollingInterval: RollingInterval.Day) .WriteTo.File("logs/portblog.txt", rollingInterval: RollingInterval.Day)
.CreateLogger(); .CreateLogger();
}
else var builder = WebApplication.CreateBuilder(args);
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Information()
.WriteTo.File("logs/portblog.txt", rollingInterval: RollingInterval.Day)
.CreateLogger();
}
var urls = builder.Configuration.GetSection("Urls"); var urls = builder.Configuration.GetSection("Urls");
@ -38,23 +26,6 @@ if (!string.IsNullOrEmpty(urls.Value))
builder.WebHost.UseUrls(allowedUrlsToUse); builder.WebHost.UseUrls(allowedUrlsToUse);
} }
var allowedCorsOrigins = builder.Configuration.GetSection("AllowedCorsOrigins");
if (!String.IsNullOrEmpty(allowedCorsOrigins.Value))
{
var origins = allowedCorsOrigins.Value.Split(",");
builder.Services.AddCors(options =>
{
options.AddDefaultPolicy(
policy =>
{
policy.WithOrigins(origins);
policy.AllowAnyHeader();
});
});
}
builder.Host.UseSerilog(); builder.Host.UseSerilog();
// Add services to the container. // Add services to the container.
@ -156,8 +127,6 @@ builder.Services.AddSwaggerGen(c =>
var app = builder.Build(); var app = builder.Build();
app.UseCors();
if (!app.Environment.IsDevelopment()) if (!app.Environment.IsDevelopment())
{ {
app.UseExceptionHandler(); app.UseExceptionHandler();

View File

@ -23,36 +23,5 @@ namespace PortBlog.API.Repositories
} }
return await _cvBlogContext.Blogs.Where(b => b.BlogUrl == blogUrl).FirstOrDefaultAsync(); return await _cvBlogContext.Blogs.Where(b => b.BlogUrl == blogUrl).FirstOrDefaultAsync();
} }
public async Task<Post?> GetPostAsync(string blogUrl, string postSlug)
{
return await _cvBlogContext.Posts.Where(p => p.Slug == postSlug && p.BlogUrl == blogUrl).FirstOrDefaultAsync();
}
public async Task<bool> PostExistsAsync(string blogUrl, string postSlug)
{
return await _cvBlogContext.Posts.AnyAsync(p => p.Slug == postSlug && p.BlogUrl == blogUrl);
}
public async Task<bool> BlogExistsAsync(string blogUrl)
{
return await _cvBlogContext.Blogs.AnyAsync(b => b.BlogUrl == blogUrl);
}
public void AddPost(Post post)
{
_cvBlogContext.Posts.Add(post);
}
public void UpdatePost(Post post)
{
_cvBlogContext.Posts.Update(post);
}
public async Task<bool> SaveChangesAsync()
{
return (await _cvBlogContext.SaveChangesAsync() >= 0);
}
} }
} }

View File

@ -5,17 +5,5 @@ namespace PortBlog.API.Repositories.Contracts
public interface IBlogRepository public interface IBlogRepository
{ {
Task<Blog?> GetBlogAsync(string blogUrl, bool includePosts); Task<Blog?> GetBlogAsync(string blogUrl, bool includePosts);
Task<Post> GetPostAsync(string blogUrl, string postSlug);
Task<bool> PostExistsAsync(string blogUrl, string postSlug);
Task<bool> BlogExistsAsync(string blogUrl);
void AddPost(Post post);
void UpdatePost(Post post);
Task<bool> SaveChangesAsync();
} }
} }

View File

@ -27,7 +27,7 @@ namespace PortBlog.API.Services
public async Task SendAsync(MessageSendDto messageSendDto) public async Task SendAsync(MessageSendDto messageSendDto)
{ {
_logger.LogInformation($"Sending message from {messageSendDto.Name} ({messageSendDto.FromEmail})."); _logger.LogInformation($"Sending message from {messageSendDto.Name} ({messageSendDto.FromEmail}).");
messageSendDto.Subject = $"Message from {messageSendDto.Name}: Portfolio"; messageSendDto.Subject = $"Hello from {messageSendDto.Name}: Protfolio";
var messageEntity = _mapper.Map<Message>(messageSendDto); var messageEntity = _mapper.Map<Message>(messageSendDto);
try try
{ {
@ -45,7 +45,7 @@ namespace PortBlog.API.Services
client.Credentials = new NetworkCredential(mailSettings.Email, mailSettings.Password); client.Credentials = new NetworkCredential(mailSettings.Email, mailSettings.Password);
using (var messageMessage = new MailMessage( using (var messageMessage = new MailMessage(
from: new MailAddress(messageSendDto.FromEmail), from: new MailAddress(messageSendDto.FromEmail, messageSendDto.Name),
to: new MailAddress(messageSendDto.ToEmail, messageSendDto.CandidateName) to: new MailAddress(messageSendDto.ToEmail, messageSendDto.CandidateName)
)) ))
{ {

View File

@ -11,12 +11,12 @@
} }
}, },
"XApiKey": "c6eAXYcNT873TT7BfMgQyS4ii7hxa53TLEUN7pAGaaU=", "XApiKey": "c6eAXYcNT873TT7BfMgQyS4ii7hxa53TLEUN7pAGaaU=",
,
"MailSettings": { "MailSettings": {
"Enable": false, "Enable": false,
"Host": "smtp.gmail.com", "Host": "smtp.gmail.com",
"Port": 587, "Port": 587,
"Email": "", "Email": "",
"Password": "" "Password": ""
}, }
"AllowedCorsOrigins": "http://localhost:4000,http://127.0.0.1:4000"
} }