I am setting up a program that requires communicating to a database, but I can not figure out how to set up SQLite for c++ in my ide, I can figure out the rest from there, but the guides are incomplete or inconclusive.
I have tried to work with the api but could not figure out how to install it into my ide, what should i download to get the code for SQLite cpp.
Don't know if you can use dotnet.exe but it's done like this
.Not all projects have these options. Too check project try this command.
Dotnet new webapp -?
Dotnet new mvc -?
Dotnet new winforms -?
Will show -uld |--use-local-db you must use -au Individual
Like this
Dotnet new webapp -au Individual -uld
For SQL server
And Dotnet new webapp -au Individual
For Sqlite.
Related
After reading Servicestack web pages, I come to the conclusion that running the following command would create an (ASP).NET Core web project:
web new web-corefx ProjetName
However, when I do that, I get an INFO saying:
D:\test>web new web-corefx Test
Installing web-corefx...
INFO: Could not find files for the given pattern(s).
running dotnet restore...
Restore completed in 576,34 ms for D:\...\Test.ServiceModel\...
Restore completed in 761,72 ms for D:\...\Test.ServiceInterface\...
Restore completed in 802,11 ms for D:\...\Test.Tests\...
Restore completed in 1,24 sec for D:\...\Test\Test\Test.csproj
Test web-corefx project created.
When I open the project in Visual Studio 2019, I see this:
... which tells me that a .NET Core project was not created.
Just to be sure that .NET Core 3 is installed and working, I created a "ASP.NET Core Web Application" via the "Add new projet" dialog, and then it shows up as expected:
Have I misunderstood how to use the "web" CLI command?
UPDATE
I also tried the x new command, like so:
x new web-corefx TestProject
and it gives me the same problem - a .NET Framework 4.7 project instead of the expected .NET Core.
However, running just x new web TestProject gave me a .NET Core project, but not of the template I wanted...
Please read the ServiceStack Template Docs you linked to closely. The project templates ending with -corefx all create ASP.NET Core Apps on the .NET Framework.
ServiceStack .NET Core C# Project Templates are in the first group, so if you wanted to create an empty .NET Core web project you would drop the suffix, e.g:
$ dotnet tool install --global x
$ x new web TestProject
Hi i downloaded visual studio for mac 2017 community version. I created a default MVC Core 2.0 project and i noticed that there is missing class of Account controllers where it used to have register and account other handler functions.
i created the same project in windows .In windows i can see that there is identity class and controller created.
how do i generate this authentication class in visual studio for mac Core 2.0?
I tried creating the default project in windows and copy to mac and it works!!! After i change the connection string to the server.Identity framework works fine in mac. But why is microsoft not generating the code for mac?
ok this is the command to include authentication for mac ok visual studio 2017 core 2.0.
dotnet new mvc -o moviemvc --auth Individual
once u register a new account. it will create a new database in the folder with app.db which is filebase database i believe.
open db use this sql lite browser to open it and view the content of it.
if you want to use sql server instead then you will need to add this into the line when create new project with terminal. add it in front of --auth will do
-uld
With Visual Studio on Windows there are extra options you can configure when creating a new ASP.NET Core project. These extra configuration options are not currently available with Visual Studio for Mac so a simpler ASP.NET Core project is created.
So you are left with copying the project from Windows, as you already did, or you can open a command prompt and use dotnet new to create a project. If you run the following you can see what configuration options you can specify for the ASP.NET Core MVC project template:
dotnet new mvc --help
Currently the GUI for Mac Visual Studio does not support the ability to add Authentication. However, the CLI does!
dotnet new sln --name <filename>
This will create a new sln
If you don't use the --name flag the sln will take the current folder's name
dotnet new mvc -o moviemvc --auth Individual
This will create a new .csproj with mvc and Authentication (Identity models) included
dotnet sln add </filepath>
This will add the file to the sln in the folder (if exists)
dotnet sln <path-to-solution.sln> add <path-to-project.csproj>
If you have multiple sln's in the folder, you will have to specify the sln you want to target
You can find more information here too
Want to use sql server as a database instead of mysql in Windows.What configuration i need to change in database.yml file and what all gems are needed for installation.Please help.
Sorry to disappoint you, but there are no easy solutions for using Rails on a Windows platform. It was not designed to run on Windows and I don't think I would recommend Windows as a platform for a Rails app. Not to say it hasn't been done, but in my experience it would be far easier to setup and run on a Linux platform as it was designed to do.
There is support for MS SQL server and Rails and you can checkout this project for more information.
My recommendation is to learn more about Rails and setting it up the environment, because a red flag to me is that you want to deploy a Rails app and yet do not know how to set it for production. This should be Rails 101 knowledge. Production is just another environment for Rails, there are things you need to be aware of when running a Rails app in production and this information can be found on easily rubyonrails.org.
Put some more time into learning Rails and perhaps setup a Linux virtual machine, deploy your Rails app, and experiment. Once you learn how to deploy Rails on a Linux platform them perhaps it may be a little easier to understand how to go about doing it on Windows.
please refer :-- https://github.com/rails-sqlserver/activerecord-sqlserver-adapter
Or else you can try with this
What is left is to learn is how to use database engine that is probably of the most interest for developers who work on Windows – Microsoft's SQL Server. If you do not have MS SQL Server installed go ahead and download MS SQL Server Express installer from Microsoft's site. I will use version 2014 in this book. Let's first create database that we will use in our Rails application:
osql -b -S localhost -U -P -Q "CREATE DATABASE RwinBookDevel COLLATE SQL_Latin1_General_CP1_CS_AS"
Newest rails adapter for MS SQL Server uses tiny_tds library to connect to MS SQL server and its usage is almost straigtforward. First thing we have to do is to add following two lines to Gemfile:
gem 'tiny_tds'
gem 'activerecord-sqlserver-adapter'
And run bundle install.
With all prerequisites met we can now configure our Ruby on Rails application to use SQL Server. Connection options are displayed below:
development:
adapter: sqlserver
mode: dblib
host: localhost
port: 1433
username: <your_db_user_name>
password: <your_db_password>
database: ABC
Hope this will help you......
We use maven to deploy the code changes to cq interner server / CRX Lite and the problem here is that it takes long time where the changes itself is often only one line code.
Has somebody experience with CQ5 with jetty and can give me a good Guide?
am not sure i understand the relationship with jetty (which ships as servlet container of latter versions of AEM/CQ5), but will answer to the code deployment part:
deploying a full content package (full content) should be done using
maven-content-package plugin for smaller deployments of content,
when you can't use integrated dev environments like sling eclipse dev
tools, i'd suggest you use the excellent repo command that basically zips the current folder and deploy it. I'm using it as an external tool command of intellij and it's really fast.
finally, if the deployment you're referring to is osgi deployment, maven sling plugin can help you with that (will still compile/package the whole osgi bundle though)
I want be able to build a native app, but without minifying the JS so I can debug it later confortably.
Currently I'm executing:
sencha app build native
How can I be able to build without minifying JS files?
Thanks
For native build, you can only have testing option after upgrade to Sencha CMD 5.x, refer to
http://docs.sencha.com/cmd/5.x/cmd_upgrade_guide.html
Under Cordova / PhoneGap
"These build profiles ensure that all of the “sencha app build” command variations are equivalent to previous releases. You will notice, however, that “native” is now a build profile instead of an environment (like “testing” or “production”). This means you can now do “sencha app build native testing” which was previously not possible."
So, the command should be
sencha app build native testing
You need to use this command line instead:
sencha app build testing
That way, all JavaScript source files are bundled but not minified; and you could debug easily.
See Sencha CMD 4 documentation for more details.