Questions tagged [massive]

A single file database access tool based on .NET 4 dynamics made by Rob Conery.

Code and documentation: https://github.com/robconery/massive

99 questions
2
votes
1 answer

query a list of dynamic objects

I am using massive to get the config table in the database. I would like to cache the config since the app gets values from it all the time. once cached is there an easy way to find the object where name = 'something' here is where the whole table…
eiu165
  • 6,101
  • 10
  • 41
  • 59
2
votes
0 answers

How do I flatten a JSON response from IEnumerable?

I am using Rob Conery's excellent masssive micro ORM in an ASP.NET MVC 3 application. When I query using massive the return type from the Query method is IEnumerable which returns JSON in a verbose format. var contacts =…
Andrew
  • 47
  • 6
2
votes
1 answer

Unable to Save List using Rob Conery's Massive

I'm using Rob Conery's Massive to connect to my database, but I don't seem to be able to be able to save a list of dynamic objects to the database. I thought this was supported though. Here's the code I am attempting to use: int numberOfChildren…
Jeremy H
  • 1,784
  • 4
  • 17
  • 27
2
votes
2 answers

Massive with WCF Web Api to return dynamic types/Expandos?

I want to use Massive for data access with WCF Web Api and return either dynamic or ExpandoObject / IEnumerable from my web api. I have this basically working using a JsonNetMediaTypeFormatter which uses Json.NET's ExpandoObject…
anderly
  • 727
  • 7
  • 16
2
votes
2 answers

Can Massive .NET ORM work on Mono for Linux?

Can the Massive .NET ORM work on Mono for Linux? If so what would need to be setup?
thames
  • 5,833
  • 6
  • 38
  • 45
2
votes
1 answer

How do I set the command timeout using Massive ORM?

How do I set the command timeout property using Massive ORM?
Dean
  • 1,550
  • 2
  • 15
  • 22
2
votes
1 answer

Examples of the Massive Micro ORM with SQL Server Compact 4.0

Are there any examples out there using Massive with SQL Server Compact 4.0? I have seen many examples with SQL Express but not with CE. I am having issues with my configuration (connection string / provider) and would like to see some…
Ken Burkhardt
  • 3,528
  • 6
  • 33
  • 45
2
votes
3 answers

Populate dropdownlist using Massive ORM?

Im using MVC 3 and Massive ORM. I wondering how I could populate a dropdownlist using Massive ORM to get my data from the database. I pass my list of categories to my view using ViewData["Categoreis"]. It passed the data to the view, but I get this…
Raskolnikoov
  • 565
  • 11
  • 27
2
votes
2 answers

Joining a PostgreSQL table into another table's column

I'm looking for a way to join(?) two tables together, but not in the traditional way of matching foreign keys and creating a row of the match. For example, if I have a person table and a cars table: Table person | name | age | cars | | ---- | --- |…
2
votes
3 answers

I don't understand why my axios post request isn't working - 404 not found

import React, {Component} from 'react'; import axios from 'axios'; export default class CreateDog extends Component { constructor(props){ super(props) this.state = { name: '', activityLevel: '', …
user8672583
2
votes
1 answer

Is there a way I can access the express's Application in a REST API?

Looking at Massive's documentation, the way to save database connection execution time is to save the connection object once to Express's application settings. My question is, how to access the Express's app variable when the REST API is…
Hao
  • 8,047
  • 18
  • 63
  • 92
2
votes
1 answer

Servicestack ORMLite/Massive managing multiple DataTables with Expandos / Dynamic?

i have a Stored Procedure that returns multiple datatables with dynamic types according to the input and I cannot modify or split it. I actually retrieve the data in this way: var massiveModel = new DynamicModel(dbConn.ConnectionString); …
2
votes
1 answer

Does Dapper use numbered parameters such as in Massive

Does Dapper use numbered parameters such as in Massive(@0, @1, ...) unlike named (@a, @b, ...)? It is necessary to create a query as //select @0 as val union select @1 union select @2 union select @3 union select @4 //union select @5 union select…
user2217261
  • 455
  • 7
  • 18
2
votes
1 answer

Using Massive Insert I get DBNull when trying to get scope_identity()

I have a table with an identity column. Using Massive with code like this var table = new Categories(); var newID = table.Insert(new {CategoryName = "Buck Fify Stuff", Description = "Things I like"}); then table.Scalar("select…
Ron Harlev
  • 16,227
  • 24
  • 89
  • 132
1
vote
2 answers

Switching from NHibernate to Massive or Dapper

I understand the basic principles of the micro orm systems like massive and dapper, however i'm struggling with understanding how it's possible to model a table with relationships. ie: Category 1---M Product In my NHibernate, or Linq2SQL solutions,…
Paul
  • 9,409
  • 13
  • 64
  • 113