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
49
votes
4 answers

Allow mapping of dynamic types using AutoMapper or similar?

I've started to use https://github.com/robconery/massive for a project, I wonder if there is any mapping tool that allows support for Dynamic to static type mapping? I've used AutoMapper previously, does AutoMapper support this? I am aware of the…
LiamB
  • 18,243
  • 19
  • 75
  • 116
12
votes
2 answers

Dependency Injection with Massive ORM: dynamic trouble

I've started working on an MVC 3 project that needs data from an enormous existing database. My first idea was to go ahead and use EF 4.1 and create a bunch of POCO's to represent the tables I need, but I'm starting to think the mapping will get…
Sergi Papaseit
  • 15,999
  • 16
  • 67
  • 101
12
votes
3 answers

Best strategies when working with micro ORM?

I started using PetaPOCO and Dapper and they both have their own limitations. But on the contrary, they are so lightning fast than Entity Framework that I tend to let go the limitations of it. My question is: Is there any ORM which lets us define…
Jack
  • 7,433
  • 22
  • 63
  • 107
7
votes
1 answer

Accessing stored procedures with robconery / massive?

Another great article by Rob on the Massive ORM. What I haven't been able to find is references on how to access stored procedures. SubSonic had some issues with the overhead of using ActiveRecords, so I preferred to do data access with stored…
6
votes
5 answers

How to implement validation with the Massive ORM?

I like Rails and so I'm drawn to Rob Conery's Massive ORM as its ... well, very railsish. My question is how exactly can you and should you do validations with Massive? In Rails you can use the simple "validates" keyword to do inline validations…
wgpubs
  • 8,131
  • 15
  • 62
  • 109
6
votes
2 answers

How did they implement this syntax in the Massive Micro-ORM, multiple args parameters?

Here on this page, Scott Hanselman shows two examples from Micro-ORMs Dapper and Massive, and the Massive-example caught my interested, because I don't see how they could implement that syntax. The example is as follows, where I'm going to break it…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
5
votes
1 answer

Can Massive cooperate with MySql?

I would like to use Massive with MySql and I see there are SQL (default), PostgreSQL, Oracle, and Sqllite providers for Massive. Is there a provider for MySql or does one of the other providers work for MySql?
thames
  • 5,833
  • 6
  • 38
  • 45
5
votes
3 answers

Count on an IEnumerable

I'm using Rob Conery's Massive ORM. Is there an elegant way to do a count on the record set returned? dynamic viewModelExpando = result.ViewData.Model; var queryFromMassiveDynamic = viewModelExpando.TenTricksNewestFirst; //fails as have actually…
Dave Mateer
  • 6,588
  • 15
  • 76
  • 125
5
votes
1 answer

ExpandoObject to static object and back again. Spanning the two domains

I'm seeking some discussion with this post. I'm looking at incorporating C# 4.0 Dynamic features into a legacy system. My explicit example is using Rob Connery's Massive in a data layer. But my questions would apply anywhere a dynamic object must…
kenswdev
  • 253
  • 5
  • 11
5
votes
2 answers

Want to use identity returned from insert in subsequent insert in a transaction

I'm using Rob Conery's Massive for database access. I want to wrap a transaction around a couple of inserts but the second insert uses the identity returned from the first insert. It's not obvious to me how to do this in a transaction. Some…
David Clarke
  • 12,888
  • 9
  • 86
  • 116
5
votes
2 answers

Least-bad way to change constructor behaviour

I feel like I'm stuck between several bad solutions here and need some advice on how to minimize future agony. We are using Massive ORM, which in its constructor has these lines: var _providerName = "System.Data.SqlClient"; if…
carlpett
  • 12,203
  • 5
  • 48
  • 82
4
votes
0 answers

When using Massive, how do you retrieve values from Out parameters of stored procedures?

I've been testing Rob Conery's Massive ORM in some of my projects. I usually use stored procedures and Massive seems to work pretty well and makes it easy. However, i can't figure out how to specify OUT parameters or how to retrieve those values…
Zack
  • 2,291
  • 2
  • 23
  • 38
4
votes
1 answer

How to update a table with composite keys using Massive ORM?

Using Rob Conery's Massive micro-ORM; is it possible to work with tables that have composite keys? I can't quite see how to assign more than a single column name as 'PrimaryKeyField'. Anyone managed to do so? More specifically; How do i do an…
Kjetil Klaussen
  • 6,266
  • 1
  • 35
  • 29
4
votes
3 answers

Is there an equivalent of Rob Conery's Massive for NoSQL (MongoDB)?

Is there an equivalent of Rob Conery's Massive for NoSQL (MongoDB)? I like Massive very much, but I'd like to use it with NoSQL databases, especially with MongoDB and I can't find a decent alternative.
4
votes
1 answer

Convert IEnumerable to string[]

I have the code below, basically returns a single column of string values from a DB using MassiveORM. The Query() method returns IEnumerable. I'm trying to find out how to cast or convert that to a simple string array. Using the below I get Unable…
Ben
  • 609
  • 6
  • 21
1
2 3 4 5 6 7