Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 244
Search took 0.02 seconds.
Search: Posts Made By: Apocolypse2005
Forum: ASP.NET 4 General Discussion June 25th, 2012, 08:07 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
It's on its way, this is a meanwhile thing. ...

It's on its way, this is a meanwhile thing.



I've tried to set one up in the EF but it doesn't like it. I have now managed to setup cascade deletes in the database, i have refreshed the entity...
Forum: ASP.NET 4 General Discussion June 25th, 2012, 04:21 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
I have tried to delete a package from this...

I have tried to delete a package from this database.

It won't let me due to the foreign key constraint as it references the package in a different table.

So how do I setup a Cascade Delete...
Forum: ASP.NET 4 General Discussion June 24th, 2012, 09:34 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
It doesn't funnily enough! However I have found...

It doesn't funnily enough! However I have found some tutorial videos done by Julie Lerman, and I'm getting there!! Its very well described!

Thankyou for you kickstart and direction, very much...
Forum: ASP.NET 4 General Discussion June 24th, 2012, 09:08 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Am so on it! Need that book! var ptx =...

Am so on it! Need that book!


var ptx = new GaleEntities();
var newVariant = new Variant()
{
variantID = Guid.NewGuid(),
variant_name =...
Forum: ASP.NET 4 General Discussion June 24th, 2012, 08:53 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Oh i get it! Thanks a lot, did you see my other...

Oh i get it! Thanks a lot, did you see my other posts about the database connections?

So if it wasn't tracked, I would need to do what i was earlier!

Also, in my post on stackoverflow,...
Forum: ASP.NET 4 General Discussion June 24th, 2012, 08:40 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Wow the diagram designer is easy to use, I never...

Wow the diagram designer is easy to use, I never knew you could do that :)
Forum: ASP.NET 4 General Discussion June 24th, 2012, 08:32 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Oh yeah, and can you also tell me why my database...

Oh yeah, and can you also tell me why my database is always being used by MSSQL Server process, its happened to a few of my DB files so i can never do anything with them again!

Haha I went on to...
Forum: ASP.NET 4 General Discussion June 24th, 2012, 08:29 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
So when you do this var ptx = new...

So when you do this

var ptx = new GaleEntities();


And you start instantiating new objects from that entity, they automatically added anyway.


var newProduct = new Product();
Forum: ASP.NET 4 General Discussion June 24th, 2012, 08:23 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
// Create new Variant var variant = new...

// Create new Variant
var variant = new Variant {
variantID = Guid.NewGuid(),
variant_discount_on = 4,
variant_markip_rate = 3,
variant_total_cost = 4
};
...
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 08:05 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Cheers Imar, much appreciated, I was getting...

Cheers Imar, much appreciated, I was getting really worried about this but thanks for spending some time on it!
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 06:46 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
This is my post in stackoverflow, it explains...

This is my post in stackoverflow, it explains what I'm trying to do. Relationships etc

http://stackoverflow.com/questions/11172798/complex-relationship-mapping-using-entity-framework
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 05:13 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
This script was generated by SQL Management...

This script was generated by SQL Management Studio 2008 R2


SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Packages](
[packageID] [uniqueidentifier] NOT NULL,
...
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 04:17 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Any Chance you could reproduce my database design...

Any Chance you could reproduce my database design and walk me through being able to add in the entity?
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 03:52 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
I have Murach's ado.net 3.5 Linq and the Entity...

I have Murach's ado.net 3.5 Linq and the Entity Framework with C# 2008, will that be sufficient?
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 03:17 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Brilliant, perfect. Now I get one more error...

Brilliant, perfect.

Now I get one more error after all that.

Because my database looks like this

Packages (packageID, package_name , .... )
PackageVariant (packageID, variantID)
Variant...
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 02:34 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Do i have to still do ...

Do i have to still do

ptx.Variant.AddObject(newVariant);

if i still do

firstOne.Variants.Add(newVariant);
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 02:31 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
It doesn't get that far, it does this: ...

It doesn't get that far, it does this:


foreach (object[] idQuant in prodList)
{
Guid prodId = Guid.Parse((string)idQuant[0]);
...
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 02:15 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Error When Doing it

I get this error after executing the SaveChanges(); (this is preceded by DetectChanges();)

An object with the same key already exists in the ObjectStateManager. The existing object is in the...
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 12:03 PM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
I'm just about to test to see if it works. I'm...

I'm just about to test to see if it works. I'm just a tad new to this entity framework stuff, I've got a book under my nose and I was just wondering if my theory was correct!
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 11:16 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Is it allowed to DetectChanges() and...

Is it allowed to DetectChanges() and SaveChanges() after all the creation of the products and variants and package has been done?
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 11:05 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Yeah, I've been a bit apprehensive about testing...

Yeah, I've been a bit apprehensive about testing it out!
Forum: ASP.NET 4 General Discussion June 23rd, 2012, 08:58 AM
Replies: 37
Views: 3,793
Posted By Apocolypse2005
Entity Framework Complex Relationships

I have a complex relationship in my Database.
Packages (packageID, package_name , .... )
VariantPackage (packageID, variantID)
Variant (variantID, variant_name, .... )
ProductVariant...
Forum: Visual Basic 2010 General Discussion March 7th, 2012, 07:50 PM
Replies: 2
Views: 745
Posted By Apocolypse2005
This is a simpler way of doing. Lists are better...

This is a simpler way of doing. Lists are better to use than arrays, especially typed ones. Nicer to look at, more semantic.



Dim arrayChar As List(string)

For i as Integer = 0 to...
Forum: Visual Studio 2008 February 16th, 2012, 09:13 AM
Replies: 4
Views: 4,024
Posted By Apocolypse2005
Actually I do remember something, VS now has like...

Actually I do remember something, VS now has like a line of code you can use to call DLLs, look that up, because i was going to do something similar, look at how VB.net handles DLLs!!
Forum: Visual Studio 2008 February 14th, 2012, 09:44 AM
Replies: 4
Views: 4,024
Posted By Apocolypse2005
Yeah, I think you can pretty much look up in the...

Yeah, I think you can pretty much look up in the VS2008 documentation and you'll find stuff about wave sound playing, that, or you can use windows media player plugin! Just search up code project and...
Showing results 1 to 25 of 244

 


All times are GMT -4. The time now is 08:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.