Silverlight Architecture

Posted by Kalyani under Silverlight on 11/4/2009 | Views : 2466 | Status : [Member] | Replies : 9
Hi ,

I am working silverlight Application... i want to create 3 layer Architecture like .net(Dataaccess layer, Framework layer,Services). and i want create thought sliverlight .. can u please any one Help me

Thanks
kalyani




Responses

Posted by: Vuyiswamb on: 11/4/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Look at this

http://blogs.msdn.com/brada/archive/2009/07/11/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-1-rich-data-query.aspx



Thank you for posting at DotnetFunda

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Kalyani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 11/4/2009 [Member] Bronze

Up
0
Down
hi kalyani


use this link
http://69.10.233.10/KB/cs/Three_Layer_Architecture.aspx



Thanks
SagarP

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Kalyani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kalyani on: 11/5/2009 [Member] Starter

Up
0
Down
Hi ,
Thanks sagar..


Thanks
kalyani

Kalyani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 11/5/2009 [Member] Bronze

Up
0
Down
ok

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Kalyani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 11/5/2009 [Member] Bronze

Up
0
Down
hi Kalyani

where r u from?where r u working



thanks
sagar



Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Kalyani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kalyani on: 11/5/2009 [Member] Starter

Up
0
Down
HI,
i want same Procedure in sliverlight using wcfClassLibrary.. please Help me any one

Thanks

kalyani

Kalyani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kalyani on: 11/8/2009 [Member] Starter

Up
0
Down
Hi Vuyiswam,
Is there any way to create silverlight Architecture with ClassLibrarys( as we used in like .net) with web.config. when i am trying to create classlibrary(SilverlightClassLibrary1 or WcfService1) am unable to reference to this files into client Bin.. can U plese help me

Thanks
kalyani

Vuyiswamb

Kalyani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 11/8/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Kalyani

There is a way. i will Compile a Example and send it to you.

Thank you for posting at dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Kalyani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kalyani on: 11/9/2009 [Member] Starter

Up
0
Down
Hi Vuysiwamb,
i alredy created sliverlight enable wcf service like this i have one class rrf1 in that
public class RRF1
{
[DataMember]
public List<ddlLocation> LocationList { get; set; }
}
i created one class . that i implemented in
[DataContract]
public class ddlLocation
{
private int _key;
private string _value;
[DataMember]
public int Key
{
get
{
return _key;
}
set
{
_key = value;
}
}
[DataMember]
public string Value
{
get
{
return _value;
}
set
{
_value = value;
}
}
}

and Declaration
#region Method Declaration
[ServiceContract]
public interface IRRFInsert
{
[OperationContract]
List<ddlLocation> getLocationDropdown();
}
and i used
#region Getting Location Values in to the dropdown
public List<ddlLocation> getLocationDropdown()
{
List<ddlLocation> ddlLocationList = new List<ddlLocation>();
SqlConnection objCon = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["ConnStr"].ToString());
DataSet dsLocation = new DataSet();
SqlCommand cmdLocation = new SqlCommand();
cmdLocation.Connection = objCon;
cmdLocation.CommandText = "usp_Synapse_REC_GetddlLocation";
cmdLocation.CommandType = CommandType.StoredProcedure;
SqlDataAdapter adaLocation = new SqlDataAdapter(cmdLocation);
//"select LOCATION_ID_PK, LOCATION_NAME from sip_Location_master ORDER BY LOCATION_NAME"
try
{
objCon.Open();
adaLocation.Fill(dsLocation);
for (int i = 0; i < dsLocation.Tables[0].Rows.Count; i++)
{
ddlLocation obj = new ddlLocation();
obj.Key = Convert.ToInt32(dsLocation.Tables[0].Rows[i]["LOCATION_ID_PK"]);
obj.Value = dsLocation.Tables[0].Rows[i]["LOCATION_NAME"].ToString();
ddlLocationList.Add(obj);
}
}
catch
{
}
finally
{
cmdLocation.Dispose();
objCon.Close();
objCon.Dispose();
}
return ddlLocationList;
}
#endregion

and i gave ref to client bin.. it's working fine.. but i don't want like this every time i don't want creat connect,command.. ect.. that want i want one framework layer , bussness layer, sevice layer to avoid single layer . i think u got my question :P . please help me

Thanks
kalyani
kalyani.



Kalyani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response