poco Questions

3

Solved

I am using AutoMapper to convert a UI model to POCOs that I later serialize to XML using a DataContractSerializer in order to preserve the references between them. The problem comes that, when map...
Strow asked 21/5, 2013 at 9:27

2

Solved

In Domain-Driven Design, the domain model should be completely unbeknownst of any data persistent specifics. Let's say that an Employee belongs to a Department. The domain entities could look lik...

7

Solved

I am using EF 4 Database first + POCOs. Because EF has no easy way to state that incoming DateTimes are of kind UTC, I moved the property from the auto-generated file to a partial class in another ...
Bombacaceous asked 3/8, 2011 at 18:1

7

Solved

If I want to read and write mongo data with a POCO public class Thingy { public string Foo {get;set;} } ... coll.Insert(new Thing(Foo = "hello")); When I read back I get a failure saying that _...
Oneeyed asked 19/5, 2011 at 18:29

4

Solved

I have two tables a parent and a child table. The child table has a column sortorder (a numeric value). Because of the missing support of the EF to persist a IList inclusive the sort order without ...
Geanticline asked 30/3, 2012 at 7:50

9

Solved

Here is my simple User POCO class: /// <summary> /// The User class represents a Coderwall User. /// </summary> public class User { /// <summary> /// A User's username. eg: "se...
Otto asked 20/6, 2012 at 18:52

5

Solved

I'm trying to update a POCO object using entity framework in the following way: context.Jobs.Attach(job); context.SaveChanges(); That does not work. No error is thrown, it just isn't updating ...
Dyarchy asked 18/1, 2011 at 19:35

4

Solved

I'm using Entity Framework 6, with POCO and fluent-API and I've noticed an annoying bug. If I have an entity called MyEntity and this entity has a property called MyProp, that makes it impossible ...
Varletry asked 2/4, 2015 at 13:51

6

I'm in VS 2013 and have just created an MVC application. I'm creating an object I intend to have a foreign key to the AspNetUsers table in the resulting database. The project does have an Applicat...

11

Solved

Can someone define what exactly 'POCO' means? I am encountering the term more and more often, and I'm wondering if it is only about plain classes or it means something more?
Hematology asked 30/10, 2008 at 12:30

10

Solved

POCO = Plain Old CLR (or better: Class) Object DTO = Data Transfer Object In this post there is a difference, but frankly most of the blogs I read describe POCO in the way DTO is defined: DTOs ar...
Bachman asked 7/4, 2009 at 12:8

10

Solved

What are the pros & cons of using Entity Framework 4.1 Code-first over Model/Database-first with EDMX diagram? I'm trying to fully understand all the approaches to building data access l...

5

I have created a DataBase in SQL and created an EDMX in Visual Studio 2012. It automatically created POCO (TT) classes. Everything looks fine. Now I change the column name of a table. I update the...
Management asked 21/3, 2013 at 10:53

2

I know there are many discussions here about DTOs and POCOs, but I couldn't really find one about this. Is there a rule on writing DTOs without constructors vs private setters and constructors? Ex...
Millardmillboard asked 13/6, 2018 at 13:15

4

Solved

UPDATE (2010-12-21): Completely rewrote this question based on tests that I've been doing. Also, this used to be a POCO specific question, but it turns out that my question isn't necessarily POCO s...
Muticous asked 9/12, 2010 at 20:2

0

I will start with TL;DR version as this may be enough for some of you: We are trying to investigate an issue that we see in diagnostic data of our C++ product. The issue was pinpointed to be ca...
Edwardedwardian asked 13/8, 2018 at 15:29

4

Solved

I will like to know that is there a way to exclude some fields from the database? For eg: public class Employee { public int Id { get; set; } public string Name { get; set; } public string Fath...
Malisamalison asked 10/11, 2009 at 12:39

8

Solved

Persistence ignorance is typically defined as the ability to persist & retrieve standard .NET objects (or POCOs if you really insist on giving them a name). And a seemingly well accepted defini...
Schmit asked 29/12, 2009 at 13:50

5

Solved

Entity Framework 4, POCO objects and ASP.Net MVC2. I have a many to many relationship, lets say between BlogPost and Tag entities. This means that in my T4 generated POCO BlogPost class I have: pu...
Kushner asked 3/9, 2010 at 10:59

2

Solved

I am getting this nullable column error message in Entity Framework 4.1 - when the column is not actually nullable: Non-nullable column MyView.RunningTotal in table TransactionListView is mapped...
Uralian asked 10/4, 2012 at 1:54

3

Solved

I am using Entity Framework 4.3.1 against a SQL Server 2012 database and I am using the POCO approach. I am getting the following error and I am wondering if anyone can explain how to fix it: Mode...
Snuggle asked 1/8, 2012 at 7:51

6

Solved

Are there any data binding frameworks (BCL or otherwise) that allow binding between any two CLR properties that implement INotifyPropertyChanged and INotifyCollectionChanged? It seems to be it shou...
Ileana asked 2/3, 2009 at 10:27

1

Solved

I'm trying to build dll with static linking Poco library which require OpenSSl. When I build Poco library with static linking with libeay32MDd.lib and ssleay32MDd.lib it works good but require Ope...
Carbajal asked 30/5, 2016 at 14:52

4

Solved

How to declare a one to one relationship using Entity Framework 4 Code First (POCO)? I found this question (one-to-one relationships in Entity Framework 4) , but the article that the answer refere...
Walterwalters asked 1/9, 2010 at 22:28

3

Solved

Is there any way to get POCO's types from specified DbContext instance?
Wilcox asked 23/9, 2012 at 15:34

© 2022 - 2024 — McMap. All rights reserved.