Questions tagged [entities]

Entity-relationship model (ER model for short) is an abstract and conceptual representation of data.

In software engineering, an entity-relationship model (ER model for short) is an abstract and conceptual representation of data. Entity-relationship modeling is a database modeling method, used to produce a type of conceptual schema or semantic data model of a system, often a relational database, and its requirements in a top-down fashion. Diagrams created by this process are called entity-relationship diagrams or ER diagrams.

832 questions
0
votes
1 answer

Linq one to many insert when many already exists

So I'm new to linq so be warned what I'm doing may be completely stupid! I've got a table of caseStudies and a table of Services with a many to many relasionship the case studies already exist and I'm trying to insert a service whilst linking some…
mat-mcloughlin
  • 6,492
  • 12
  • 45
  • 62
0
votes
1 answer

PHP DomDocument Save XML with HTML

How would I save an XML file opened with DomDocument so that the HTML inside won't be encoded into HTML entities?
Tower
  • 98,741
  • 129
  • 357
  • 507
0
votes
1 answer

How do i design EF5 code first entities with protected/private members DDD style

So I am reading this DDD book and at the same time designing a new system. In the DDD book they have an example where the entity have private members such as ID and other values. Lets say as an example we have a user entity and it has id and a…
0
votes
1 answer

How do I protect my code from HTML Injection?

This is my code, how do I prevent people from injecting HTML or anything like that in the comment and name field? I read something about html entities and stripping tags, but I have no clue whatsoever how to do it :(
0
votes
0 answers

How to flush zend_form to multiple entities

I'm struggling with flushing my zend_form to 2 entities. In total I've 3 entities. User, Address and Country. Country is not interesting because it has standard values where only the ID come into Address. My add-action works good (only when I keep…
Haidy
  • 259
  • 6
  • 19
0
votes
2 answers

Entity association problem

I have three tables: User: UserId (pk) FirstName Lastname Messages: MessageId (pk) Heading Body User_Messages: UserId MessageId Now, the entity designer only creates two tables with an…
fARcRY
  • 2,338
  • 6
  • 24
  • 40
0
votes
1 answer

using @Embedabble with a foreign key and manyToMany relation

I wrote an example for the code i am trying to implement, i get an error with Constraint "Student_Teacher_FK" already exists. the @embiddable class has a foreign key that is created twice with current code. @Entity public class Teacher { @Id …
seismael
  • 77
  • 1
  • 10
0
votes
2 answers

Adding to ICollection of type entity issue

Can some one help Not sure what I am doping wrong: in my controller: [HttpPost] public ActionResult SaveRecommendedUserDetails(RecommendAFriendViewModel model) { //List entityGroups = new List(); …
charlie_cat
  • 1,830
  • 7
  • 44
  • 73
0
votes
1 answer

How to deal with HTML-entities for publishing multilingual content

In case of publishing any text online as a HTML page – I face the problem of the correct reflection of symbols of several languages which require extended Latin character encoding. In this case I’m searching the Entity (hex) from the list on this…
0
votes
1 answer

Using EF5 Linq to Entities as DAL to BLL to ObjectDataSource

I am struggling with Linq to Entites. I am new to EF5 and Linq. I am programming in VB.NET. I have been using Table Adapters that return DataSets as the DAL into a BLL that I then linked to ObjectDataSource. Now I upgraded to VS2012 from VS2005…
0
votes
1 answer

How should save objects in the database which are no entities

An entity "schoolyear" has configurable visible week days which are visible or not in a time planner. I see now 2 posibilites to save the visible week days. Either I make an N:M relation: N schoolyear has M VisibleWeekDays Or I put the visible…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
0
votes
1 answer

Doctrine2 + CodeIgniter and database table creation issue

I'm using Doctrine2 with codeIgniter, I've created some models in yml format. Using command line I've created the Proxies and Entities. When I'm trying to create the database tables, I'm getting the following…
Bagbyte
  • 845
  • 2
  • 18
  • 34
0
votes
1 answer

C# EF4.0 POCO - how to set navigation proprety with entity from different DbContext?

I want to set a foreign key on an entity. I have the foreign entity exposed in my user control, and want to set it via WinForms data binding. Here's the catch - the foreign entity was originally loaded from another repository/DbContext, as the user…
Brendan Hill
  • 3,406
  • 4
  • 32
  • 61
0
votes
2 answers

Getting rid of HTML entities in a web title generated in PHP

I have a website with the content management system GetSimple which is written in PHP. I edited it as I needed, however, in the header, this is what is supposed to be there: <?php get_page_clean_title(); ?> - <?php get_site_name();…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/title" class="post-tag grid--cell" title="show questions tagged 'title'" rel="tag">title</a> <a href="../../questions/tagged/entities" class="post-tag grid--cell" title="show questions tagged 'entities'" rel="tag">entities</a> <a href="../../questions/tagged/htmlspecialchars" class="post-tag grid--cell" title="show questions tagged 'htmlspecialchars'" rel="tag">htmlspecialchars</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 13 '13 at 20:17">asked Mar 13 '13 at 20:17</time> <a href="../../users/2167115/teejay" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2167115.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="TeeJay" /> </a> <div class="s-user-card--info"> <a href="../../users/2167115/teejay" class="s-user-card--link">TeeJay</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,593</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="21 silver badges">21</li> <li class="s-award-bling s-award-bling__bronze" title="33 bronze badges">33</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-1535183"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/1535183/how-to-display-entities-taken-from-xml-with-javascript" class="question-hyperlink">How to display entities taken from XML with Javascript?</a></h3> <div class="excerpt">There MUST be an easy way to do that! I didn't want to ask this question again if somebody already asked it but I couldn't find something similar in this site... anyway : So I have a XML file : <marker>This is a test & it's fun.…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/entities" class="post-tag grid--cell" title="show questions tagged 'entities'" rel="tag">entities</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 08 '09 at 01:41">asked Oct 08 '09 at 01:41</time> <a href="../../users/138377/joel" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/138377.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Joel" /> </a> <div class="s-user-card--info"> <a href="../../users/138377/joel" class="s-user-card--link">Joel</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">895</li> <li class="s-award-bling s-award-bling__gold" title="4 gold badges">4</li> <li class="s-award-bling s-award-bling__silver" title="13 silver badges">13</li> <li class="s-award-bling s-award-bling__bronze" title="33 bronze badges">33</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/entities_page=50" rel="prev" title="Go to page 50">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/entities_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/entities_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/entities_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/entities_page=55" rel="" title="Go to page 55">55</a> <a class="s-pagination--item" href="../../questions/tagged/entities_page=56" rel="" title="Go to page 56">56</a> <a class="s-pagination--item" href="../../questions/tagged/entities_page=52" rel="next" title="Go to page 52"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>