Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 22 10:09
    0vermind opened #1038
  • Sep 17 20:35
    recepseyis opened #1037
  • Aug 20 18:14
    LesterCerioli closed #1022
  • Aug 03 08:51
    AreebaKhalid opened #1036
  • Jul 26 16:43
    jaygithub2010 closed #1034
  • Jul 26 16:43
    jaygithub2010 commented #1034
  • Jul 21 22:42

    dependabot[bot] on nuget

    Bump Azure.Storage.Blobs Bumps… (compare)

  • Jul 21 22:42
    dependabot[bot] labeled #1035
  • Jul 21 22:42
    dependabot[bot] opened #1035
  • Jun 28 15:15
    jaygithub2010 opened #1034
  • Jun 27 05:09
    jducobu opened #1033
  • Jun 12 09:58
    KienNC commented #1018
  • Jun 12 09:47
    KienNC commented #1018
  • Jun 09 04:37
    nevinfrancisnepolien commented #1018
  • Jun 09 04:32
    nevinfrancisnepolien commented #1018
  • May 09 21:49
    cihant opened #1032
  • May 08 18:15
    cihant opened #1031
  • Apr 20 23:34
    SamsDkh edited #1030
  • Apr 20 23:33
    SamsDkh opened #1030
  • Apr 14 06:18
    fulminous commented #1018
Do Nhu Vy
@donhuvy
please help me
this is a part of file appsettings.json
  "ConnectionStrings": {
    "DefaultConnection": "Server=DESKTOP-FSES7UK\\MSSQLSERVER;Initial Catalog=SimplCommerce;MultipleActiveResultSets=true;User ID=sa;Password=12345678"
  },
I am using Visual Studio 2019 Community preview
then I press F5
image.png
the result is
Hisham Bin Ateya
@hishamco
Yep
If you setup the connectionString correctly, dotn't forget to enable the migration in VS
Do Nhu Vy
@donhuvy
this is tab Error List
Severity Code Description Project File Line Suppression State Suppression State Warning ENC1003 Changes made in project 'SimplCommerce.WebHost' will not be applied while the application is running SimplCommerce.WebHost E:\source_code\github.com\donhuvy\SimplCommerce\src\SimplCommerce.WebHost\Extensions\ApplicationBuilderExtensions.cs 1 Active Warning ENC1003 Changes made in project 'SimplCommerce.WebHost' will not be applied while the application is running SimplCommerce.WebHost E:\source_code\github.com\donhuvy\SimplCommerce\src\SimplCommerce.WebHost\Extensions\ServiceCollectionExtensions.cs 1 Active Warning CS0618 'RazorViewEngineOptions.AdditionalCompilationReferences' is obsolete: 'This property is obsolete and will be removed in a future version. See https://aka.ms/AA1x4gg for details.' SimplCommerce.WebHost E:\source_code\github.com\donhuvy\SimplCommerce\src\SimplCommerce.WebHost\Extensions\ServiceCollectionExtensions.cs 95 Active
@hishamco thank you, How to enable migration in Visual Studio? I am quite new with ASP.NET Core
image.png
Do Nhu Vy
@donhuvy
I type foobar, then it run, but web-app still not run
Hisham Bin Ateya
@hishamco
be sure the Simple.WebHost is selected in the dropdown for Package Console
Stope the application and type Enable-Migrations
image.png
Hisham Bin Ateya
@hishamco
As it's shown here (Access is denied.) while attempting to open or create the physical file 'C:\Users\donhuvySimplCommerce.mdf'
Seems you are not able to create the database
Please create new database name SimplCommerce for instance using SSMS, and try to run the command again
Hope if fixed the issue
Do Nhu Vy
@donhuvy
thank @hishamco It works
Hisham Bin Ateya
@hishamco
Good Luck
bugproof
@bugproof
does simplcommerce work fine with postgresql on windows?
Thien Nguyen Le Quynh
@thiennn
I believe so
bugproof
@bugproof
src/Database/StaticData_Postgres.sql
is missing
@thiennn
Was looking for some tool to convert sql server script to postgresql but nothing worked
maybe it would be better to use some common static data format ?
maybe JSON
and just use EF to insert the data
or HasData from EF Core
it's hard tho to make the application fully database agnostic
bugproof
@bugproof
mariadb/postgresql would be much better as a default even on windows
bugproof
@bugproof
image.png
postgres doesn't work apparently
bugproof
@bugproof
image.png
bugproof
@bugproof
I'm shocked how crazily fast the website works compared to PHP
amazing :o
bugproof
@bugproof
mysql works fine
using Pomelo.EntityFrameworkCore.MySql on windows
bugproof
@bugproof
is there anyway to edit cshtml and not having to restart the server?
when developing a theme
Thien Nguyen Le Quynh
@thiennn
@bugproof the issue with PostgreSQL has been fixed
now you also can update file cshtml in the theme and just refresh the browsers
Hisham Bin Ateya
@hishamco
@bugproof this is doable from within Visual Studio