Questions tagged [simple.data]

Simple.Data is a lightweight framework that uses the dynamic features of .NET 4 to provide an expressive, ORM-ish way of accessing and manipulating data without any of the code pre-generation and boilerplate required by other frameworks.

Simple.Data is a lightweight framework that uses the dynamic features of .NET 4 to provide an expressive, ORM-ish way of accessing and manipulating data without any of the code pre-generation and boilerplate required by other frameworks. Instead, it interprets method and property names at runtime and maps them to your underlying data-store using a convention-based approach.

128 questions
0
votes
1 answer

System.IO.FileNotFoundException in SimpleData

I am using Simple Data (1.0.0-rc0) like Simple.DataDatabase.Default.Licenses.All().ToList() to get a list of licenses. It works fine and all in my productions environment (VS2010, IIS7.5) but once deployed to live server it throws : …
Rotkiv
  • 3
  • 1
0
votes
1 answer

Getting a column's IS_NULLABLE value from Simple.Data

I'm using Simple.Data.Ado.Schema.Column to get the schema for the columns in my SQL Server database. But from browsing around the classes and going into the source code, it seems Simple.Data does not query for the IS_NULLABLE value. Is there any way…
Amry
  • 4,791
  • 2
  • 23
  • 24
0
votes
1 answer

Documentation about Simple.Data.Mocking xml structure?

Anyone have links with the xml structure used for Simple.Data.Mocking? Thanks!
Rodrigo Juarez
  • 1,745
  • 1
  • 23
  • 38
0
votes
1 answer

Simpledata random ordering

A SimpleData issue I have two tables: Company and products. When I query and get products of all companies meeting a certain criteria, I want to have the results randomly ordered each time they are returned. How do I do that? Also, I would love,…
TDaddy Hobz
  • 454
  • 4
  • 11
0
votes
1 answer

How to check if SimpleList or SimpleRecord is empty

I got the following issue. I am trying to use the With or WithMany instruction to retrieve a linked list of roles of an business relation via an outer join. The referential integrity is in place on the database but the primary key on the roles table…
Remco Koedoot
  • 239
  • 4
  • 13
0
votes
1 answer

Magic Casting to collection of results

In the Simple.Data examples, there is an example of 'Magic Casting': // When you assign the dynamic record to a static type, any matching properties are auto-mapped. var db = Database.Open(); Customer customer =…
DavidGouge
  • 4,583
  • 6
  • 34
  • 46
0
votes
2 answers

How do I connect to SQLite with Simple.Data.SQLite

I wrote this code in Webmatrix 2.0 beta: string Dbfile=HttpContext.Current.Server.MapPath("data/db.db3"); var Db = Simple.Data.Database.OpenFile(Dbfile); Simple.Data.SimpleDataException: No ADO Provider found. why?? I'm sure that I have included…
-2
votes
1 answer

Use table name as variable

I'm trying to use table name as variables Base on this question here I'm able to do it in some cases but in this one: var usersId = db[tableNameLabel].All().Select(db[tableNameLabel].userid, db[tableNameLabel].rating.Count().As("Count")); I get the…
1 2 3
8
9