Hi Folks,
I´ve some trouble with implementing Core Data to my existing iPhone-Project. First I wanna give you a more detailed view on it:
Some of my classes are nested into each other: The class "Game" has an NSArray with objects of class "Player", the class "Player" has an NSArray with objects of class "Item" in turn.
What I wanna do...
I am having a tough time to understand why this code is failing
I have a test method
IUnitOfWork unitofwork = EFUnitOfWork.CreateInstance();
IRepository<InformationRequest> informationRequestRepository = unitofwork.CreateRepository<InformationRequest>();
IEnumerable<InformationRequest> requests = informationRequestRepository.ToList();...
I have a conceptual model in EDM where one of the entities has a property which is essentially a big value object whose properties aren't really useful as columns in the datamodel. I'd like to apply the Serialized LOB pattern to it so that I can fit it into a 192 byte binary column.
How do I map this in the EDM v4? Is it even possible a...
Hello Sir/Madam,
How to create a property that return TEntity object for dataContext.GetTable parameter.
The example code shown below.
Thank You.
public IQueryable<Order> FetchAll()
{
dataContext.GetTable<MyTEntity>();//<==
}
protected Type MyTEntity //<==
{
get { return Order; }
}
...
Hey all,
Simple question. Is it possible to add a block of HTML in a SimpleXMLElement (or as a matter of fact, DOMDocument) node without auto-converting the HTML data into entity format?
For example, take this snippet (with DOMDocument here, but SimpleXMLElement behaves exactly the same):
<?php
$dom = new DOMDocument( '1.0', 'utf-...
Hello. I've been evaluating MindScape Lightspeed for the purpose of Model creation. So far I am satisfied. I was further looking for OOTB (actually some professional quality code) providers for MySQL for ASP.Net. I've come across 'dotconnect for MySQL' from Devart. This looks like fitting the bill for the latter requirement. It also has ...
Hello;
I have a simple table with few date fields.
Whenever I run following query:
var docs = ( from d in base.EntityDataContext.document_reviews
select d ).ToList();
I get following exception:
Unable to convert MySQL date/time value to System.DateTime.
MySql.Data.Types.MySqlConversionException: Unable to convert MySQL date/time v...
I am trying to perform a very simple task which is "Add the user with role in the database". The roles are already populated in the database and I am simply adding the role to the User roles collection but it keeps throwing the following exception:
The EntityKey property can only be set when the current value of the property is null.
...
Good day,
I currently have an Entity that has a where clause set on it. I want to put that where clause on a filter and have that turned-on by default (so that I won't break any existing functionalities).
I want to turn it into a filter so that I can disable it because I have a use case wherein I need it disabled.
How can I do that in...
I have some data bound controls which are bound to a bindingSource which is bound to a entity model. The problem I've run into is I need to be able to allow the user to filter to a specific record to update information and when a bindingSource is tied to an entity model filtering is disabled. What would be the best way around this? Sh...
Hi,
I have an XML file which is transformed with XSL. Some elements have to be changed, some have to be left as is - specifically, text with entities ", &, ', <, > should be left as is, and in my case " and ' are changed to " and ' accordingly.
Test XML:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<...
I am creating the Entity Framework ObjectContext per ASP.NET Request using the following code:
public static class ObjectContextPerRequest
{
public static EStudyTestDatabaseEntities Context
{
get
{
var _context = HttpContext.Current.Items["EStudyModel"] as EStudyTestDatabaseE...
I have been trying to reason about the best way to handle whether it is generally good practice to implement hashcode and equals on entities (I mean entity in the general sense but in most cases it will be a JPA entity).
In Chapter 24 of the Hibernate manual http://docs.jboss.org/hibernate/core/3.3/reference/en/html/best-practices.html ...
Let's say I have:
class Unit {
private TextContainer source;
private List<TextContainer> targets;
}
Can I annotate class TextContainer in such a way that it works within both relationships?
TextContainer must be either source or target.
...
Hello All,
I have receive the infamous Login Failed for User 'NT AUTHORITY/NETWORK SERVICE' when I try to run a page that contains and EntityDataSource and Listview. Here's Stack Trace:
[SqlException (0x80131904): Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException...
Hi,
I'm looking for a tool (preferably freeware) which can visualize - in the form of a diagram the relationships of a set of entity beans in a a database.
Thanks in advance,
Johnny
...
I am trying to load a partial entity with Linq to Entities:
Dim contacts = From c In My.Context.Contacts _
Select New Contact With { _
.ContactId = c.ContactId, _
.Name = c.Name
}
I tried it and I get the following NotSupportedException: "The entity or complex type 'CompleteKitchenModel.Contact' cannot be c...
Example: I have two tables in my database called classA and classB, and one table called classA_classB. The last one just defined two int fields with foreign keys to link between classA and classB. So one classA can have many classB, and many classA can link with the same classB. Simple stuff, so far.
The problem is, in my special case,...
Hi there,
I wonder if somebody knows if there is a framework somewhere out there tha can convert from XSD to entity model.
thank kiu..
...
I'm fairly new to Core Data, have looked through many tutorials and forums and haven't found the elegant solution to my problem:
I've got three entities in my model: Worker, Task, and SubTask. Each has a to-many relationship to the entity below it and a to-one inverse. Worker has many Tasks, each Task has many SubTasks, each SubTask has...