npoco


Nopoc Execute() method returns -1


Iam trying to pass table valued parameter to Stored procedure using NPoco
{var parameters = new SqlParameter[]
{
new SqlParameter
{
SqlDbType=SqlDbType.Structured,
ParameterName="#MetricInfoTableType",
SqlValue=table,
TypeName="dbo.InfoTableType"
}
};
cdc.Execute("[dbo].[usp_Rules_INS]", parameters);
}
then Iam geting return type is -1
You might want to try something like this
cdc.Execute(";EXEC [dbo].[usp_Rules_INS] ##MetricInfoTableType = #0", parameters);

Related Links

NPoco mapping primarykey error
Nopoc Execute() method returns -1
Creating a new database using NPoco
Creating Custom Ignore attribute only for Update methods?
NPoco One-To-Many and Many-To-Many
Any example of using join in query applyable for npoco
How do I format a query to fetch an aggregate root with just related ids

Categories

HOME
qlikview
repository
azure-active-directory
marie
teradata
stanford-nlp
intellij-idea
fortran
cxf
opencv4android
arcgis
x86-64
angularjs-directive
flowtype
oms
solidity
virtualenv
aggregate
airbnb
orange
aiml
bootstrap-datetimepicker
monad-transformers
dev-c++
google-drive-android-api
pushbullet
poisson
symlink
jopendocument
mex
pushpad
paper-trail-gem
overflow
contextmenustrip
snapkit
n1ql
repeat
mongoid5
word-wrap
nsdateformatter
armadillo
fisheye
spring-data-commons
nao-robot
serialversionuid
openidm
dna-sequence
aws-rds
ajv
critical-section
zedgraph
wicketstuff
lightspeed
visual-web-developer
deck.js
csc
alchemy
markerspiderfier
web-performance
app-data
gnu-sort
commercetools
gulp-cdnizer
jain-sip
dnvm
first-order-logic
android-networking
fileinputstream
accpac
sony-xperia
diffmerge
dirname
disabled-control
msdropdown
behance-api
satisfiability
lettuce
jsmpp
image-preloader
db2-connect
mdp
php-amqplib
surfaceview
ardor3d
octokit
nsautoreleasepool
cloudmade
brew
microsoft-speech-platform
cron4j
invalidoperationexception
inflate
netbiscuits
netzke
google-email-audit-api
reflexil
motorola-droid
joomla1.7
execjs
youtube.net-api
simultaneous
table-valued-parameters
lts
tracd

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