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
1
vote
1 answer

Caching results using Massive micro-ORM

I'm using the Massive micro-ORM with a new project. I added some caching, and it all appeared to work - until I realize that the cached objects (dynamic) are still querying the database. This kills the whole point of caching. What would be the…
David Crowell
  • 3,711
  • 21
  • 28
1
vote
1 answer

Technique to create new var foo=new{bar = "Hohoho"}

I am new to the c# language and questions came up. i use the massive single file DB. here you can create a class like this: public class products : DynamicModel { public products(String conn) : base("northwind", "products","productid") { …
manfred reichelt
  • 137
  • 1
  • 3
  • 9
1
vote
3 answers

How to use IEnumerable in knockout.js?

Problem Description I wanted to ask about how to use a list Exbando Objects in knockout.js,am using Rob Conrey's Massive and all returned results are dynamic, that's fine with me it suits my needs but when it comes to sending results to knockout i…
Ibrahim Ahmed
  • 2,295
  • 4
  • 21
  • 35
1
vote
2 answers

Massive: Using stored procedure

I am trying to execute stored procedure using Massive micro-orm. var tbl = new DynamicModel("Conn", tableName: "User", primaryKeyField: "UserID"); var result = tbl.Query("EXEC User_INSERT @0,@1,@2,@3", "7843bf9d-9cb8-495b-aaa5-785ac74b82a5",…
Rajul
  • 135
  • 10
1
vote
2 answers

Massive: Update object: Cannot update identity column

I have following scenario... Massive Micro-ORM .NET framework 4.0 SQL Server 2008R2 Model: public class sUser : DynamicModel { public sUser() : base(Model.strConnection, "Users", "UserId") { } } public class Test { public void…
Rajul
  • 135
  • 10
1
vote
1 answer

How can I determine if a stored procedure needs a parameter?

Possible Duplicate: How can I retrieve a list of parameters from a stored procedure in SQL Server I'm using Massive to create a generic stored procedure executor. Basically, I have a function that takes the name of a procedure, and a variable…
xdumaine
  • 10,096
  • 6
  • 62
  • 103
1
vote
1 answer

how to create model in mvc3 using massive db for a DB table with composite primary key?

Im new to massive ORM. Im working in asp .net mvc3 and using massive ORM. I have a table with composite primary and I need to create model for the same. Can anyone tell me how to do this? I had created model for tables with single primary key.
Mridul Raj
  • 1,001
  • 4
  • 19
  • 46
0
votes
1 answer

Using Massive; in a WPF Application with EF

I want to use Massive ORM(by Rob Conerys) in a WPF Application using Entity Framework. It sais to add in app.config the providerName = 'System.Data.SqlClient' but using EF I have System.Data.EntityClient and I get this error : "Unable to find the…
Misi
  • 748
  • 5
  • 21
  • 46
0
votes
1 answer

Massive Query with inner join not returning any data

I'm using the Massive Query method to write a simple join query against an Oracle database. This is my code with the query simplified even further by taking out some columns: dynamic logTable = new DynamicModel("mydatabase", "table1"); …
Miguel
  • 311
  • 2
  • 9
0
votes
2 answers

NUnit is not failing test with dynamic keyword of .Net 4.0

I am using NUnit with Visual Studio Express Edition 2010 for C#, Now, normally test works fine. But whenever I try to use Massive.cs, which is open source api to access database. Test fails from that file only. Now, if I run the application, api is…
kunjee
  • 2,739
  • 1
  • 23
  • 38
0
votes
1 answer

serializing dates correctly with javascript serializer in asp.net mvc3

i am experimenting with backbone javascript after seeing the Tekpub MVC3 screencasts by Rob Connery i like his Massive database access, but as soon as it is getting a bit more complex than a video can possibly show you. i added extra fields to my…
Sander
  • 13,301
  • 15
  • 72
  • 97
0
votes
1 answer

Testing results with Massive

I'm returning a list to my MVC controller from Massive. When I'm in my test how can I check that there are 3 records (as expected) in the returned list? My test code currently returns the 3 records from a call and populates into my ViewModel (model)…
lloydphillips
  • 2,775
  • 2
  • 33
  • 58
0
votes
1 answer

Apply a function into all my active numbers

We created a function and now We want to apply this to all our active numbers but I couldn't find a way to change this in mass yet. Is this posible ?
0
votes
1 answer

Recreating new list with old elements but different orders

I have a list of dicts like [ {'elemend_id':1, 'data': 'datachunk1'}, {'elemend_id':2, 'data': 'datachunk2'}, {'elemend_id':3, 'data': 'datachunk3'} ... {'elemend_id':99, 'data': 'datachunk99'}] So script processin data and stops at some point. I…
0
votes
3 answers

Filtering an array by multiple property values

I have an array of the form var cars = [ {name: "BMW X5", topsales: ["USA", "China", "Russia"], maxspeed: 250, users: ["teenage", "ladies", "mens"]} {name: "Volkswagen Touareg", topsales: ["USA", "Germany"], maxspeed: 240, users: ["teenage",…