3 Question about HTTPS , CSLA to CSLA Silverlight and Linq or EF.

3 Question about HTTPS , CSLA to CSLA Silverlight and Linq or EF.

Old forum URL: forums.lhotka.net/forums/t/6992.aspx


NickyLarson posted on Saturday, May 23, 2009

Normal 0 21 false false false PT X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabela normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}





Hello everybody.


Next day I sent a Email to Rocky, to demand him some advice.


With his permission I post my question and his answer.



" Please I need some advice.

 

Hello Rocky, I am a beginner in CSLA, I am still learning.
I bought your book and the  CSLA .NET for Silverlight video series and I love it.


I would like to ask you 3 questions.


1. Can I use HTTPS with CSLA, or just the security of WCF is enough? (for example a bank site)

     If yes do I need to do some changes in the code?

 

 

2. If I have my web application done whit CSLA.NET , and I want to change to CSLA.NET for Silverlight do I have to wrote all the code  again or just do some little changes?


3. Should  I use Linq to SQL instead of EF, I saw recently in the forum http://forums.lhotka.net/forums/thread/33196.aspx   you prefer waiting for EF2. But I also read somewhere , the linq gone be dead soon. So now I am confuse I don´t know what to choose Linq or EF. Maybe Linq because your example are all with linq. "


Rocky answer


" Normal 0 21 false false false PT X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabela normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} I am glad you are enjoying the book and the video series.

 

You should ask these questions in the forum. If you do that you can take advantage of everyone’s experience.

 

1 – Yes you can use HTTPS/SSL. WCF can be configured to use SSL and transport security. CSLA .NET doesn’t care if you use SSL or not.

 

2 – You can easily use CSLA .NET for Windows business object code in CSLA .NET for Silverlight if you do these things

 

a.       Use managed backing fields for your properties

b.      Make sure to regularly test your code in a 3-tier deployment, even if your web app is 2-tier (this helps make sure you don’t make any coding mistakes that prevent you from switching to 3-tier for Silverlight later)

c.       Write new asynchronous factory methods for your objects when you switch to Silverlight

d.      Alter any validation rules that talk to the database to be async rules for Silverlight

 

3 – Your guess is as good as mine. I usually use raw ADO.NET (connection/command/datareader) because there is no worry about that going away, and because it is the fastest option.

 

4 – Video segment 5 (business object stereotypes) is being edited now and should be done within 2-3 days. I will record segment 6 (data access) next week and I hope it will be done by the end of May. Segment 7 should be done in the first week or two of June."


I hope this question help anyone how have the same doubt.


Paulo Lopes.


Copyright (c) Marimer LLC