<|start_filename|>BlazorBlogs/Data/Models/BlogCategory.cs<|end_filename|>
﻿// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
using System.Collections.Generic;

namespace BlazorBlogs.Data.Models
{
    public partial class BlogCategory
    {
        public int Id { get; set; }
        public int BlogId { get; set; }
        public int CategoryId { get; set; }

        public virtual Blogs Blog { get; set; }
        public virtual Categorys Category { get; set; }
    }
}

<|start_filename|>BlazorBlogs/Data/Models/Blogs.cs<|end_filename|>
﻿// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
using System.Collections.Generic;

namespace BlazorBlogs.Data.Models
{
    public partial class Blogs
    {
        public Blogs()
        {
            BlogCategory = new HashSet<BlogCategory>();
            Comment = new HashSet<Comment>();
        }

        public int BlogId { get; set; }
        public DateTime BlogDate { get; set; }
        public string BlogTitle { get; set; }
        public string BlogSummary { get; set; }
        public string BlogContent { get; set; }
        public string BlogUserName { get; set; }

        public virtual ICollection<BlogCategory> BlogCategory { get; set; }
        public virtual ICollection<Comment> Comment { get; set; }
    }
}

<|start_filename|>BlazorBlogs/Data/Models/Comment.cs<|end_filename|>
﻿// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
using System.Collections.Generic;

namespace BlazorBlogs.Data.Models
{
    public partial class Comment
    {
        public Comment()
        {
            InverseParentComment = new HashSet<Comment>();
        }

        public int CommentId { get; set; }
        public int BlogId { get; set; }
        public int? ParentCommentId { get; set; }
        public string CommentUserId { get; set; }
        public string Comment1 { get; set; }
        public DateTime CommentCreated { get; set; }
        public DateTime? CommentUpdated { get; set; }
        public string CommentIpaddress { get; set; }

        public virtual Blogs Blog { get; set; }
        public virtual Comment ParentComment { get; set; }
        public virtual ICollection<Comment> InverseParentComment { get; set; }
    }
}

<|start_filename|>BlazorBlogs/Data/Models/BlogsPaged.cs<|end_filename|>
﻿using System;
using System.Collections.Generic;

namespace BlazorBlogs.Data.Models
{
    public partial class BlogsPaged
    {
        public List<Blogs> Blogs { get; set; }
        public int BlogCount { get; set; }
    }
}

<|start_filename|>BlazorBlogs/Data/Models/LogsPaged.cs<|end_filename|>
﻿using System;
using System.Collections.Generic;

namespace BlazorBlogs.Data.Models
{
    public partial class LogsPaged
    {
        public List<Logs> Logs { get; set; }
        public int LogCount { get; set; }
    }
}

<|start_filename|>BlazorBlogs/Data/Models/Logs.cs<|end_filename|>
﻿// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
using System.Collections.Generic;

namespace BlazorBlogs.Data.Models
{
    public partial class Logs
    {
        public int LogId { get; set; }
        public DateTime LogDate { get; set; }
        public string LogAction { get; set; }
        public string LogUserName { get; set; }
        public string LogIpaddress { get; set; }
    }
}

<|start_filename|>BlazorBlogs/Data/Models/Categorys.cs<|end_filename|>
﻿// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using System;
using System.Collections.Generic;

namespace BlazorBlogs.Data.Models
{
    public partial class Categorys
    {
        public Categorys()
        {
            BlogCategory = new HashSet<BlogCategory>();
        }

        public int CategoryId { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }

        public virtual ICollection<BlogCategory> BlogCategory { get; set; }
    }
}