Asp.net :: Fluorine TransientAttribute And Linq-to-SQL?

Jul 9, 2010

I've found a workaround, but I had trouble earlier this week working with FluorineFx, where I had a Linq-to-SQL-generated object I wanted to send over the wire to Flash. This object contained a property that Flash didn't need:

[Association(Name="User_UserEntry", Storage="_UserEntries",
ThisKey="UserID", OtherKey="UserID")]
public EntitySet<UserEntry> UserEntries { ... }

But Flex couldn't handle reinflating this type, throwing: ArgumentError: Error #2173: Unable to read object in stream. The class flex.messaging.io.ArrayCollection does not implement flash.utils.IExternalizable but is aliased to an externalizable class. Now I didn't need to send the property over the wire, so I tried the steps that Marc Gravell suggested in issue 456624, firstly adding attributes to it using the MetadataTypeAttribute in System.ComponentModel.DataAnnotations (found from JasonW's comment on issue 393687:

[MetadataType(typeof(UserMetadata)]
public partial class User { }
internal class UserMetadata[code]....

Unfortunately it seems that FluorineFx doesn't support metadata attributes yet (which isn't very surprising, tbh, they are quite new). What I ended up having to do was create a dedicated DTO, with all the properties that Flash cared about and none of the properties it didn't. Not the most elegant of solutions.

View 1 Replies


Similar Posts:


Actionscript 3 :: Fluorine Request Not Being Made In Some IE Versions?

Apr 15, 2011

We have a really strange problem with a piece of Fluorine integration we've built.We have a form with a Captcha on it; the Captcha image is populated from a .Net/AMF webservice inventively titled GetCaptchaImage.ashx and can be reloaded from a text hyperlink within the Flash.

In some versions of IE (particularly IE8, but it may also be others), irrespective of IE version emulation and wmode, clicking the text link causes the HTTP call to our Fluorine gateway successfully to be made, but the call to the webservice does not follow it. Inspecting the HTTP transactions with Microsoft Fiddler, [code]...

why on earth that second call wouldn't be making it to the webserver? I can't see why the Flash wouldn't be issuing the HTTP GET but, equally, I can't think of any reason why a browser (let alone just this browser) would be suppressing it. I'm not a Flash developer (I run the .Net team here),

View 1 Replies

Actionscript :: Flex - C# Nullable Double To NaN Through Fluorine Gateway

Aug 19, 2010

Is there a way in fluorine to force a nullable double to be passed to flex as NaN? (and vice versa) By default these values are passed as null, but a Number in actionscript is not nullable, so it is converted to 0 by default. I need server side nullable doubles to be NaN in flex, and NaN values from flex to be nullable doubles on the server side.

View 1 Replies

Asp.net :: Load An In Memory XML Returned By A Linq To SQL Query To An SWF Object?

Nov 12, 2010

Can i load an in memory XML, returned by a linq to SQL query, to an SWF object? And here comes the long version. The purpose is loading an in-memory XML file, to an SWFobject via a querystring.

Currently i read and load the XML file from an absolute path.

[Code]...

View 1 Replies

C# / Linq Add An XAttribute To A XElement After The XElement.Remove() Has Been Invoked?

Feb 16, 2011

I'm currently translating portions of the chem4word project from C# to AS3. In the below code the XElement DelegateElement calls its Remove() method. If mark == true then it passes that XElement to have an XAttribute "deleted" = "true" but if the node has been removed what does c# / Linq actually do?

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved