Questions tagged [poco]

Means Plain Old CLR Object, a simple object that does not follow any object model, convention or framework. For questions about the POCO C++ library, please use [poco-libraries].

Means Plain Old CLR Object, a simple object that does not follow any object model, convention or framework. For questions about the POCO C++ library (http://pocoproject.org), please use [poco-libraries].

1553 questions
0
votes
3 answers

NHibernate - is there a tool to generate POCOs?

I'm looking into using NHibernate and all looks good. Is there a tool that I can use to generate POCOs from the current database? This will speed up developer time rapidly as opposed to creating them.
Funky
  • 12,890
  • 35
  • 106
  • 161
0
votes
1 answer

Grid binded to EntityFramework Poco class via BindingSource is not automatically refreshing

This one is test project to show my question. (VS2012, WinForms, EntityFramework 5, XtraGrid 12.5) Model created by EF PowerTools - Reverse Engineer CodeFirst tool. In the timer1_tick event i'm changing mypoco.value property. I'm expecting that…
Ayhan
  • 183
  • 13
0
votes
2 answers

POCO and MVC 4 Models

I've just created my first MVC project. My question is with MVC is it common practice to create POCO classes or just create the objects in the Models ?
neildt
  • 5,101
  • 10
  • 56
  • 107
0
votes
2 answers

Application Service Objects, should they contain methods which call domain service methods

I am searching for an answer and I couldn't find any. We have a Domain Layer which contains Services and POCOs. Then we have an ApplicationService Layer which contains Services which delegate the Domain Layer services and also maps the POCOs to…
0
votes
2 answers

How to structure c# poco so that it works with time series json data in Highcharts?

I am working on creating a time series chart using Highcharts.js like the one in this example: http://www.highcharts.com/demo/spline-irregular-time This chart has date and data in a series that I am accessing via an ajax call to a c# api that then…
vbuser2004
  • 1,002
  • 1
  • 9
  • 20
0
votes
1 answer

openRTMFP cumulus how to compile and install

i've just downloaded cumulus, POCO, OpenSSL and LuaJIT and visual studio. now i'm trying to compile it as it said in instruction here however i've never used visual studio and i've never programed on visual c. so i'm stuck at the very begining. in…
SuperYegorius
  • 754
  • 6
  • 24
0
votes
2 answers

Is using a table inheritance a valid way to avoid using a join table?

I've been following a mostly DDD methodology for this project, so, like any DDD'er, I created my domain model classes first. My intention is to use these POCO's as my LINQ-to-SQL entities (yes, they're not pure POCO's, but I'm ok with that). I've…
Josh E
  • 7,390
  • 2
  • 32
  • 44
0
votes
2 answers

How do I extract this LinqToSql data into a POCO object?

with my Repository classes, I use LinqToSql to retrieve the data from the repository (eg. Sql Server 2008, in my example). I place the result data into a POCO object. Works great :) Now, if my POCO object has a child property, (which is another POCO…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
0
votes
1 answer

EF WPF DataGrid Reload causes InvalidOperationException: why?

I have a EF 4 POCO DbContext and am showing a table in a DataGrid (System.Windows.Controls.DataGrid). I can SaveChanges to store changes made in the DataGrid. I can Reload() to get data updated by another user (ie me using SQL Management Studio). I…
ajd
  • 423
  • 4
  • 11
0
votes
1 answer

POCO One-To-One, micro ORM. Should I store ref id or only ref object?

Should I store ref id to child Poco or only ref object in Model when using micro ORM like Dapper (in Repository)? I think that if I store both there will be synchronization issue when updating root object. For example: Class Boat +Id …
userx01233433
  • 366
  • 1
  • 4
  • 13
0
votes
2 answers

lack of separation of EF poco

I like EF but poco classes with attributes still seem like they are too tightly coupled to the framework. If I want to use those same Poco classes for something other than EF those attributes may have no use or meaning. Is there a way to deal with…
Dkong
  • 2,748
  • 10
  • 54
  • 73
0
votes
1 answer

Flexibility with eager loading huge object graphs, NHibernate HQL TOP N in SQL

I need to pass POCO Domain objects (eagerly loaded). Having analyzed both Entity Framework and NHibernate, I can't find a solution! Analyzing the underlying SQL and queries by NHibernate, I discovered that ISession.CreateQuery (string…
0
votes
2 answers

How to use Entity Framework with an existing Database and Poco Structure

Over the last few days I've been restructuring and existing application of mine written in C# to use Entity Framework instead of the custom data access layer I made. All was going well until I ran into a particular POCO. This POCO has 6 properties,…
NightW.
  • 73
  • 1
  • 1
  • 9
0
votes
1 answer

ASP.Net Session POCO Collection Property

I am persisting an object to Session in ASP.Net. This property has a nested collection property, which is a List: public class Model { public string ID { get; set; } public List Models { get; set; } } When I add a Model to the…
Darbio
  • 11,286
  • 12
  • 60
  • 100
0
votes
1 answer

Passing Generic Class' Property to ColumnAttribute in Code First Migration

I have an abstract class inherited in 3 POCO objects: public abstract class BaseObject { public virtual int Id { get; set; } } public class Post : BaseObject { public string Name { get; set; } public virtual ICollection
stack247
  • 5,579
  • 4
  • 41
  • 64