poco

Entity Framework EDM.Binary Mapping to VB type

Hi, I'm using POCOs with the latest version of EF 4.0 and have a timestamp field on my SQL Server 2008 db for handling optimistic concurrency. The designer has created a mapping for the field with as an entity type of Binary. How should this be represented in my VB POCO as EDM.Binary is not available there? When I have the field as a B...

Pop3 help for a C++ implementation!

Alright, so this is absolutely killing me... If anyone could help me, I would be the happiest man on the face of the earth... So, I need to create a C++ email client for a project at school, and I've been using the POCO open source C++ library, and I've been fine for working with email servers that do not need SSL authentication, but an...

Entity Framework v4 - what's the difference between POCO vs Code-Only ?

Hi folks, i'm under the impression that EF with POCO: allows you to map your own POCO's to the entities on the model (.edmx). EF Code-Only: no edmx / model designer (ie. CSDL/SSDL/MSL (collectively EDMX) metadata). Still POCO's but the mappings, relationships, navigation, etc are all manually coded (hence the code-only, description). ...

How do you include an external library in your own project for C++?

Hey guys, So I'm quite new to C++, I've basically been coding it all semester for a class. For our final project, we made an email client in C++ with .NET, and to do all the email sending and receiving, we went with using the POCO email client. Now, basically in order to use the POCO library, I've compiled it and done a number of thing...

POCO objects with lazy loading

Hi! I'am new to ASP.NET MVC, IoC, POCO, etc. So I want to know is it OK to use such kind of architecture. This is my demo project. Project.Core (this assembly referenced by all project) public class User { public string Name {get; set;} public List<UserGroup> UserGroups{get; set} } public class UserGroup { public string Tit...

Creating single EXE file for project using .Net and another external library

I have an email client created for class that we need to run as a single EXE. It is made with C++ .NET, and the external POCO library, which has a ton of DLL files... What would be the best way to make this happen? I was looking on some similarly asked questions, and some people recommended tools such as ILMerge and Ezirez, but the que...

Table per hierarchy inheritance with POCO entities in Entity Framework 4

Our organization is looking to standardize on Entity Framework once v4 comes out. As a result, I am looking at what it would take to migrate our application that uses NHibernate for persistence to EF4 using POCO support. In a couple of places we use single table inheritance (also known as Table Per Hierarchy). I have been unable to get i...

Using MS MVC and DDD, How and where to define a MVC ActionMethod parameter class that involves an entity, a value object, and a few extra fields?

I am just at the brink of going "Ah HA!" when it comes to coding Domain Driven Design. The question is How and where to define a MVC ActionMethod parameter class that involves an entity, a value object, and a few extra fields? The entity and value object classes are defined in my repository. Do I: Create a custom class in the reposi...

Trying to save an object with the Entity Framework v4 - how?

Hi folks, I've using Entity Framework v4 (that comes with VS2010 Beta 2) + POCO's. I can load the data from the db into the poco's perfectly. Now, i have a single poco instance, and i don't know how to save it to the DB, using EF4. Can someone help please? I'm guessing it's because the EF4 doesn't know that the POCO has 'changed'? anyw...

POCO Threads - How to Notify the Client?

There is a client (user) who wants to interact with Process B. For security purposes, Process A is between client and Process B. Users can only access Process A. Process A is a relay. It reads from the client (user) and sends data without modification to Process B. It also reads from Process B and sends data to the user without modificat...

Subsonic custom mapping of objects to tables

Geeting, I'm using Compact Framework 3.5 and have tenatively settled on a custom build of Subsonic 3.0 to do data access. The trouble is that I am used to developing model-first but am also interested in keeping control of my DB schema. Therefore, neither ActiveRecord or Repository appears to meet my needs, and I want to use my existing...

Entity Framework 4.0 POCO and Many-to-Many problem

I have created POCO domain objects that map to the entities in the entity domain model. Everything was working fine until now when I have to work with the many-to-many relationship. Let's say I have three tables. - Blog - BlogTag - Tag You can see that Blogs and Tags are many-to-many with a bridge table, BlogTag that cont...

Linkage problem when using Poco C++ 1.3.6 for iPhone Xcode project

I managed to compile Poco C++ 1.3.6 library for iPhone by the following commands: ./configure --config=iPhone --no-tests --omit=Data,Cryptor,NetSSL_OpenSSL ./make Then I created a new view-based Application for iPhone and add Header search paths and changed my .m file to .mm. And then I added the newly compiled .a files into my Xcode ...

Using POCO for windows developing with Eclipse

Hi, i have build POCO library with Visual Studio 2008 and get the .lib files (PocoFoundationmt.lib, PocoNetmt.lib ...) I try to compile a simple program from Poco/Net/samples/httpget using latest Eclipse IDE I have linked project to libraries (Preferences > C/C++ Build > Settings > MinGW C++ Linker) and specified include paths. It see...

Poco MulticastSocket tutorial

Is there any tutorial, that shows, how to work with Poco::Net::MulticastSocket ? ...

What exactly is "persistence ignorance"?

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 definition of a standard .NET object is: "...ordinary classes where you focus on the business problem at hand without adding stuff for infrastructur...

Using enums with Pococapsule (C++ IoC-container)

Is there a way of supplying enum values as method-args in pococapsule without resorting to factory-methods? Let say I have a class that take an enum value in its constructor class A { A(myEnum val); } Using Pococapsule xml configuration: I would like to express something like this: <bean id="A" class="A"> <method-arg type="M...

Good Poco C++ tutorial

Hi. Does anyone know of a good Poco C++ tutorial, which provides a good introduction to first usage of this framework? I seen the examples and reference, but need something that will get me quickly started. Thanks. ...

Complete C++ "from scratch" frameworks

What C++ frameworks provide a complete skeleton, in the fashion of Ruby on Rails? I think Poco C++ does it, are there other options? ...

Entity Framework v4 -> need some help with POCO's and Entities

I'm using EF4 and I've got two entities that I wish to map to the same POCO. I'm not sure how I can do this. Entity 1 → Foo (this represents a table FOO in the db) POCO → Foo Entity 2 → FooView (this represents a view FooView in the db) POCO → Foo I understand that I need to do something like IObjectSet<Foo> _foos = Creat...