Just an idea, create an overload, something like this:
.UpdateObject(buyer, myusername)
B-) Gerry Lowry, Chief Training Architect, Paradigm Mentors Learning never ends... +1 705-999-9195 wasaga beach, ontario canada TIMTOWTDI =.there is more than one way to do it
B-) Gerry Lowry, Chief Training Architect, Paradigm Mentors Learning never ends... +1 705-999-9195 wasaga beach, ontario canada TIMTOWTDI =.there is more than one way to do it
Member
1 Points
31 Posts
Pass new property like (string myusername) from controller page to Business proj(Repositories) by...
Nov 20, 2014 10:57 AM|hmsarab|LINK
public partial class Buyer
{
[DataMember]
public int Id { get; set; }
[DataMember]
public short BuyerMethod { get; set; }
[DataMember]
public string BuyerContent { get; set; }
[DataMember]
public short BuyerFormat { get; set; }
}
This is my Metadata partial class in edmx project folder (another layer)
[MetadataType(typeof(BuyerDeliveryMetadata))]
[DataServiceKey("Id")]
public partial class Buyer
{
}
This is in web app project (Metadata foleder)
[MetadataType(typeof(BuyerDeliveryMetadata))]
public partial class Buyer
{
}
This is in Controller page
this.ClientRepositories.BackOfficeData.UpdateObject(buyer);
I want to pass my string usesrname value from controller page to Business proj(Repositories) by by buyer object which is not in EF.
thanks
Star
14297 Points
5797 Posts
Re: Pass new property like (string myusername) from controller page to Business proj(Repositories...
Nov 20, 2014 03:45 PM|gerrylowry|LINK
@hmsarab welcome to forums.asp.net
Just an idea, create an overload, something like this:
Member
1 Points
31 Posts
Re: Pass new property like (string myusername) from controller page to Business proj(Repositories...
Nov 24, 2014 06:28 AM|hmsarab|LINK
Thank you for your response.
I appreciate you if you write me how can to write the code Or pass me useful link to help.
Thanks again.
Star
14297 Points
5797 Posts
Re: Pass new property like (string myusername) from controller page to Business proj(Repositories...
Nov 24, 2014 12:08 PM|gerrylowry|LINK
@hmsarab
output:
Reference:
http://msdn.microsoft.com/en-us/library/ms229029(v=vs.110).aspx "Member Overloading"
Member
1 Points
31 Posts
Re: Pass new property like (string myusername) from controller page to Business proj(Repositories...
Dec 05, 2014 12:52 PM|hmsarab|LINK
It was great.
Thanks