create-table


How to create table with Simple.Data?


I'm making my first steps with Simple.Data ORM. I wanted to know if there is anyway I can create new table in my database. Currently I'm working on MemoryAdapter (provided with library) but in future, I want to do the same with production database.
So far, I've tried with Simple.Data.RawSql addon, but ended with no luck.
Is the ORM suitable tool for such operation?
Simple.Data currently has no migrations feature (which is the technical name for what you're describing). I recommend using the FluentMigrations package for working with your database schema.
You could use a stored procedure:
CREATE PROCEDURE ProcedureWithoutParameters
AS
CREATE TABLE Persons
(
PersonID int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
);
documentation on stored procs

Related Links

Create table with constraint in openedge progress
Create table automatically in database backup when I create table from database source
Create Table in Impala use one Table for the Datatype
i cannot create a table , what is the wrong here ? ( Syntax error: Encountered “(” )
What is the recommended way to create table with PetaPoco (and NPoco)?
SQL oracle Developer error
'create table' event … with Apache Cassandra
Creating table in mysql but the error keeps poping up , what am i doing wrong?
How to create table with Simple.Data?
“table or view does not exist” but it does
SQL Error: ORA-00904: : invalid identifier in creating table

Categories

HOME
sendgrid
google-api-php-client
jpeg
jxls
webpack-2
alpha
convolution
portia
cross-validation
metatrader4
kentor-authservices
mapserver
quickbooks
resize
libtiff
pc
flux
lucene.net
textfield
java-3d
graphicsmagick
microsoft-r
wpfdatagrid
virtualdub
applozic
libssl
sql-server-2012-express
bcd
semantic-versioning
typed.js
hexo
x11-forwarding
espeak
occlusion
c11
hilbert-curve
ssjs
webdriver-manager
cookiecutter-django
botbuilder
isbn
outlook-api
dotcover
parentheses
azure-application-gateway
apache-fop
upstart
tizen-native-app
integrity
elgg
composite-key
crypt
django-scheduler
nxt
grails-tomcat-plugin
bonobo
skobbler-maps
websitepanel
clang-static-analyzer
php-internals
photobucket
hsv
unity-networking
vhd
libressl
security-testing
fscommand
offloading
angularjs-ng-click
applescript-objc
java-metro-framework
phpthumb
comexception
seaside
oracle-warehouse-builder
srs
typo3-neos
centos5
aqtime
spring-io
blending
odata4j
dataadapter
padarn
limejs
specification-pattern
distutils
e4x
anonymous-methods
bitsharp
ohm
jquery-ui-layout
bigcouch
php-parser
gnustep
vdsp
gcj
mod-auth
appendto
propagation
forums
nsviewanimation
bespin
user-friendly
meego
putchar

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App