### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Program.cs using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; namespace xApi { public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build().Run(); } public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup(); }); } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Startup.cs using System; using System.IO; using xServices.DI; using System.Net.Http; using Newtonsoft.Json; using xApi.Extensions; using xHttpService.DI; using System.Reflection; using xCommons.Extensions; using xDataService.Models; using xIdentityService.DI; using xServices.Databases; using xCommons.Configurations; using System.Collections.Generic; using Microsoft.Extensions.Hosting; using xIdentityService.Middlewares; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Newtonsoft.Json.Serialization; using Microsoft.Extensions.Configuration; using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.Extensions.DependencyInjection; using IdentityModel.AspNetCore.OAuth2Introspection; namespace xApi { public class Startup { // public IConfiguration Configuration { get; } private readonly XApiDatabaseDescriptor apiDatabaseDescriptor; public Startup(IConfiguration configuration) { // Configuration = configuration; // // Create an Api Descriptor Class Instance ... apiDatabaseDescriptor = new XApiDatabaseDescriptor(); } public void ConfigureServices(IServiceCollection services) { // // Register Validation Provider and all XCommons Module Services ... services.AddXCommons(Configuration); // // Register App Configuration ... services.AddXAppConfiguration(Configuration); var appConfiguration = services.GetRegisteredService(); // // Register Allowed Origins ... services.AddXCors(appConfiguration.AllowedOrigins); // // Register Swagger ... var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml"; var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile); services.AddXSwagger(Configuration, xmlFilePath: xmlPath); // // Register HttpService ... services.AddXHttpService(Configuration); // // Add Api V1 Versioning ... services.AddXApiV1Versioning(); // // OAuthIntrospectin Http Client Handler ... // this is for handling SSLErrors ... services.AddHttpClient(OAuth2IntrospectionDefaults.BackChannelHttpClientName) .ConfigurePrimaryHttpMessageHandler(() => { return new HttpClientHandler { ServerCertificateCustomValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true }; }); // // Register Authorizations ... services.AddXAuthorization(); // services.AddControllers() .AddNewtonsoftJson(x => { x.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; x.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); }); // // Custom ... // services.Configure(options => { options.AllowSynchronousIO = true; }); // services.Configure(options => { options.AllowSynchronousIO = true; }); // // Register Services ... services.AddXServices( configuration: Configuration, databases: new List { apiDatabaseDescriptor }, lifeTime: ServiceLifetime.Scoped ); } public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { // if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } // // Use Swagger Middleware ... app.UseXSwagger(); // app.UseHttpsRedirection(); // // Using Cors ... app.UseXCors(); // app.UseRouting(); // // Enable Api Key Usage Logs ... // app.UseXApiKeyUsage(); // // Use xIdentityService ... app.UseXIdentityService(); // app.UseAuthorization(); // app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); // // Use xDataService Middleware ... app.UseXServices( databases: new List { apiDatabaseDescriptor }, isDevelopmentEnvironment: env.IsDevelopment() ); } } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Controllers\AccountController.cs using xCommons.Providers; using xCommons.Configurations; using xIdentityHelper.Controllers; using xIdentityService.Interfaces; using Microsoft.Extensions.Logging; namespace xApi.Controllers { public partial class AccountController : XAccountControllerBase { // #region Constructor ... public AccountController( ILogger logger, XAppConfiguration appConfiguration, IXIdentityProvider identityProvider, XValidationProvider validationProvider ) : base( logger, appConfiguration, identityProvider, validationProvider ) { } #endregion } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Controllers\StartupController.cs using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using xCommons.Configurations; using xCommons.Controllers; using xCommons.Providers; namespace xApi.Controllers { /// /// Runing when application start ... /// [Route ("")] [AllowAnonymous] public class StartupController : XBaseController { public StartupController ( ILogger logger, XAppConfiguration appConfiguration, XValidationProvider validationProvider ) : base ( logger, appConfiguration, validationProvider ) { } /// /// Show Configured Welcome Message /// /// [HttpGet ("")] [AllowAnonymous] public virtual ActionResult Index () { // var controllerName = GetControllerName (); var message = $"{AppConfiguration.WelcomeMessage}"; // return Ok (message); } } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Controllers\TestFeaturesController.cs using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using xCategoryService.Interfaces; using xCommons.Configurations; using xCommons.Controllers; using xCommons.Providers; namespace xApi.Controllers { [AllowAnonymous] public class TestFeaturesController : XBaseApiController { private readonly IXSubCategoryTitleResourceProvider subCategoryTitleResourceProvider; public TestFeaturesController( ILogger logger, XAppConfiguration appConfiguration, XValidationProvider validationProvider, IXSubCategoryTitleResourceProvider subCategoryTitleResourceProvider ) : base( logger, appConfiguration, validationProvider ) { this.subCategoryTitleResourceProvider = subCategoryTitleResourceProvider; } [HttpGet] public async Task TestFeature() { // var result = await subCategoryTitleResourceProvider.GetLanguages( identifier: "SSSSAAALLLAAAM" ); // return Ok(result); } } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Controllers\TestIdentity.cs using xCommons.Providers; using xCommons.Configurations; using xIdentityService.Interfaces; using xIdentityHelper.Controllers; using Microsoft.Extensions.Logging; namespace xApi.Controllers { /// /// Test all Authentication Policies ... /// public class TestIdentity : XTestIdentityControllerBase { public TestIdentity ( ILogger logger, XAppConfiguration appConfiguration, IXIdentityProvider identityProvider, XValidationProvider validationProvider ) : base ( logger, appConfiguration, identityProvider, validationProvider ) { } } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Extensions\XStartupExtensions.cs using System.Collections.Generic; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.Extensions.DependencyInjection; using xIdentityHelper; using xCommons.Authorization; using xCommons.Extensions; namespace xApi.Extensions { public static class XStartupExtensions { /// /// Register Authorization Policies /// /// /// public static void AddXAuthorization ( this IServiceCollection services, IDictionary policies = null ) { // services.AddAuthorization (options => { // if (!policies.IsNull ()) { // // Fill Policies ... using (var policiesEnumerator = policies.GetEnumerator ()) { while (policiesEnumerator.MoveNext ()) { var policyDescriptor = policiesEnumerator.Current; options.AddPolicy (policyDescriptor.Key, policyDescriptor.Value); } } } // var xPolicies = XAuthorizationHelper.GetXAuthorizationPolicies (); if (!xPolicies.IsNull ()) { // // Fill Policies ... using (var policiesEnumerator = xPolicies.GetEnumerator ()) { while (policiesEnumerator.MoveNext ()) { var policyDescriptor = policiesEnumerator.Current; options.AddPolicy (policyDescriptor.Key, policyDescriptor.Value); } } } }); // services.AddSingleton (); } /// /// Use Forward Headers Options for resolving behind a proxy issues ... /// /// /// public static void UseXForwardOptions (this IApplicationBuilder source) { // var forwardOptions = new ForwardedHeadersOptions { ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto, RequireHeaderSymmetry = false }; // forwardOptions.KnownNetworks.Clear (); forwardOptions.KnownProxies.Clear (); // // ref: https://github.com/aspnet/Docs/issues/2384 source.UseForwardedHeaders (forwardOptions); } } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Extensions\XUserClaimsInfoDtoExtensions.cs using xCommons.Extensions; using xIdentityModels.Constants; using xIdentityModels.Models; namespace xApi.Extensions { public static class XUserClaimsInfoDtoExtensions { public static string GetUserSelectByParam ( this XUserClaimsInfoDto source, XUserSelectBy userSelectBy = XUserSelectBy.Username ) { // var result = ""; // switch (userSelectBy) { // case XUserSelectBy.ID: result = source.UserId; break; // case XUserSelectBy.Username: result = source.UserName; break; // case XUserSelectBy.Email: result = source.Email; break; // case XUserSelectBy.MobileNumber: result = source.PhoneNumber; break; } // if (result.IsNullOrEmpty ()) { // if (!source.UserId.IsNullOrEmpty ()) { result = source.UserId; } else if (!source.UserName.IsNullOrEmpty ()) { result = source.UserName; } else if (!source.Email.IsNullOrEmpty ()) { result = source.Email; } else if (!source.PhoneNumber.IsNullOrEmpty ()) { result = source.PhoneNumber; } } // return result; } } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Migrations\20261008081506_InitialMigration.cs using System; using Microsoft.EntityFrameworkCore.Migrations; namespace xApi.Migrations { public partial class InitialMigration : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Categories", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), Deleted = table.Column(nullable: false), Title = table.Column(nullable: true), Description = table.Column(nullable: true), References = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Categories", x => x.Id); }); migrationBuilder.CreateTable( name: "Contents", columns: table => new { Id = table.Column(nullable: false), Deleted = table.Column(nullable: false), OwnerId = table.Column(maxLength: 255, nullable: false), Title = table.Column(maxLength: 255, nullable: false), Description = table.Column(maxLength: 255, nullable: true), CreatedOn = table.Column(nullable: false), UpdatedAt = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_Contents", x => x.Id); }); migrationBuilder.CreateTable( name: "Files", columns: table => new { Id = table.Column(nullable: false), Deleted = table.Column(nullable: false), Type = table.Column(nullable: false), OwnerId = table.Column(maxLength: 255, nullable: false), Name = table.Column(maxLength: 255, nullable: false), Path = table.Column(nullable: false), Thumb = table.Column(nullable: true), ThumbPath = table.Column(nullable: true), UploadedOn = table.Column(nullable: false), FileName = table.Column(nullable: true), References = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Files", x => x.Id); }); migrationBuilder.CreateTable( name: "Strings", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), Deleted = table.Column(nullable: false), Language = table.Column(maxLength: 10, nullable: false), ResourceTitle = table.Column(maxLength: 255, nullable: false), TranslatedValue = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_Strings", x => x.Id); }); migrationBuilder.CreateTable( name: "SubCategories", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), Deleted = table.Column(nullable: false), Title = table.Column(nullable: true), Description = table.Column(nullable: true), References = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_SubCategories", x => x.Id); }); migrationBuilder.CreateTable( name: "Tags", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), Deleted = table.Column(nullable: false), Tag = table.Column(maxLength: 255, nullable: false), References = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Tags", x => x.Id); }); migrationBuilder.CreateTable( name: "Tests", columns: table => new { Id = table.Column(nullable: false), Deleted = table.Column(nullable: false), Firstname = table.Column(nullable: true), Lastname = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Tests", x => x.Id); }); migrationBuilder.CreateTable( name: "Webinars", columns: table => new { Id = table.Column(nullable: false), Deleted = table.Column(nullable: false), Title = table.Column(maxLength: 255, nullable: false), Description = table.Column(maxLength: 255, nullable: false), OwnerId = table.Column(nullable: false), Type = table.Column(nullable: false), CreatedOn = table.Column(nullable: false), Enabled = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_Webinars", x => x.Id); }); migrationBuilder.CreateTable( name: "WebinarSubscribers", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), Deleted = table.Column(nullable: false), SubscriberId = table.Column(nullable: false), WebinarId = table.Column(nullable: false), SubscribedOn = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_WebinarSubscribers", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Categories"); migrationBuilder.DropTable( name: "Contents"); migrationBuilder.DropTable( name: "Files"); migrationBuilder.DropTable( name: "Strings"); migrationBuilder.DropTable( name: "SubCategories"); migrationBuilder.DropTable( name: "Tags"); migrationBuilder.DropTable( name: "Tests"); migrationBuilder.DropTable( name: "Webinars"); migrationBuilder.DropTable( name: "WebinarSubscribers"); } } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Migrations\20261008081506_InitialMigration.Designer.cs // using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using xServices.Databases; namespace xApi.Migrations { [DbContext(typeof(XApiDbContext))] [Migration("20261008081506_InitialMigration")] partial class InitialMigration { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.14"); modelBuilder.Entity("xCategoryService.Models.Entities.XCategory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Description") .HasColumnType("TEXT"); b.Property("References") .HasColumnType("TEXT"); b.Property("Title") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Categories"); }); modelBuilder.Entity("xCategoryService.Models.Entities.XSubCategory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Description") .HasColumnType("TEXT"); b.Property("References") .HasColumnType("TEXT"); b.Property("Title") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("SubCategories"); }); modelBuilder.Entity("xContentService.Models.Entities.XContent", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("CreatedOn") .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Description") .HasColumnType("TEXT") .HasMaxLength(255); b.Property("OwnerId") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("Title") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("UpdatedAt") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Contents"); }); modelBuilder.Entity("xFileService.Models.Entities.XFile", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("FileName") .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("OwnerId") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("Path") .IsRequired() .HasColumnType("TEXT"); b.Property("References") .HasColumnType("TEXT"); b.Property("Thumb") .HasColumnType("TEXT"); b.Property("ThumbPath") .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("UploadedOn") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Files"); }); modelBuilder.Entity("xServices.Models.Entities.XTest", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Firstname") .HasColumnType("TEXT"); b.Property("Lastname") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Tests"); }); modelBuilder.Entity("xStringService.Models.Entities.XString", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Language") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(10); b.Property("ResourceTitle") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("TranslatedValue") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Strings"); }); modelBuilder.Entity("xTagService.Models.Entities.XTag", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("References") .HasColumnType("TEXT"); b.Property("Tag") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.HasKey("Id"); b.ToTable("Tags"); }); modelBuilder.Entity("xWebinarService.Models.Entities.XWebinar", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("CreatedOn") .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Description") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("Enabled") .HasColumnType("INTEGER"); b.Property("OwnerId") .IsRequired() .HasColumnType("TEXT"); b.Property("Title") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("Type") .HasColumnType("INTEGER"); b.HasKey("Id"); b.ToTable("Webinars"); }); modelBuilder.Entity("xWebinarService.Models.Entities.XWebinarSubscriber", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("SubscribedOn") .HasColumnType("TEXT"); b.Property("SubscriberId") .IsRequired() .HasColumnType("TEXT"); b.Property("WebinarId") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("WebinarSubscribers"); }); #pragma warning restore 612, 618 } } } ### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\xApi\Migrations\XApiDbContextModelSnapshot.cs // using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using xServices.Databases; namespace xApi.Migrations { [DbContext(typeof(XApiDbContext))] partial class XApiDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.14"); modelBuilder.Entity("xCategoryService.Models.Entities.XCategory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Description") .HasColumnType("TEXT"); b.Property("References") .HasColumnType("TEXT"); b.Property("Title") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Categories"); }); modelBuilder.Entity("xCategoryService.Models.Entities.XSubCategory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Description") .HasColumnType("TEXT"); b.Property("References") .HasColumnType("TEXT"); b.Property("Title") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("SubCategories"); }); modelBuilder.Entity("xContentService.Models.Entities.XContent", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("CreatedOn") .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Description") .HasColumnType("TEXT") .HasMaxLength(255); b.Property("OwnerId") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("Title") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("UpdatedAt") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Contents"); }); modelBuilder.Entity("xFileService.Models.Entities.XFile", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("FileName") .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("OwnerId") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("Path") .IsRequired() .HasColumnType("TEXT"); b.Property("References") .HasColumnType("TEXT"); b.Property("Thumb") .HasColumnType("TEXT"); b.Property("ThumbPath") .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("UploadedOn") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Files"); }); modelBuilder.Entity("xServices.Models.Entities.XTest", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Firstname") .HasColumnType("TEXT"); b.Property("Lastname") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Tests"); }); modelBuilder.Entity("xStringService.Models.Entities.XString", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Language") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(10); b.Property("ResourceTitle") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("TranslatedValue") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Strings"); }); modelBuilder.Entity("xTagService.Models.Entities.XTag", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("References") .HasColumnType("TEXT"); b.Property("Tag") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.HasKey("Id"); b.ToTable("Tags"); }); modelBuilder.Entity("xWebinarService.Models.Entities.XWebinar", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("CreatedOn") .HasColumnType("TEXT"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("Description") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("Enabled") .HasColumnType("INTEGER"); b.Property("OwnerId") .IsRequired() .HasColumnType("TEXT"); b.Property("Title") .IsRequired() .HasColumnType("TEXT") .HasMaxLength(255); b.Property("Type") .HasColumnType("INTEGER"); b.HasKey("Id"); b.ToTable("Webinars"); }); modelBuilder.Entity("xWebinarService.Models.Entities.XWebinarSubscriber", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Deleted") .HasColumnType("INTEGER"); b.Property("SubscribedOn") .HasColumnType("TEXT"); b.Property("SubscriberId") .IsRequired() .HasColumnType("TEXT"); b.Property("WebinarId") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("WebinarSubscribers"); }); #pragma warning restore 612, 618 } } }