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
grizzly
macros
marie
python-requests
opc-ua
sugarcrm
css-selectors
atlassian-fisheye
kendo-asp.net-mvc
browserstack
virtualhost
vsixmanifest
ionic-native
normals
olap
openbsd
jpql
core-data
cakephp-2.0
fastreport
openstack-horizon
k-means
internet-explorer-7
passbook
summernote
oracle-golden-gate
waterfall
core-animation
jira-zephyr
grunt-contrib-uglify
formtastic
typeorm
git-submodules
dynamics-ax-2012-r3
opencsv
spring-oauth2
aweber
jibx
android-graphview
electron-packager
quartz
web-technologies
firefox-developer-edition
f#-fake
result
ocamlbuild
line-endings
hierarchical-clustering
skype-bots
vertex
xamarin-test-cloud
tsc
scrollmagic
breadcrumbs
sharing
alarmmanager
blackberry-webworks
alfred
konakart
nsoperationqueue
calc
jsondoc
jersey-test-framework
videoview
ewam
jts
php-gd
adempiere
tess4j
joomla3.3
tooltwist
vectordrawable
fileinputstream
parseexception
accpac
strcpy
chrome-mobile
applinks
dojox.grid
growl
pytz
step
elixir-framework
pthreads-win32
nomachine
grape-api
octokit
stringstream
dd4t
cloudmade
simplemembership
generator-expression
urlfetch
cryptarithmetic-puzzle
correctness
report-viewer2010
custom-cursor
django-admin-tools
reflexil
yii-cactiverecord
qvariant
youtube.net-api
mdd
retrospectiva
projectgen
memory-consumption

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