This question is locked. New answers and comments are not allowed.
What will be the Retrun type of Following function
Because i want All record from both table........ and i want to apply foreach loop on list
Can AnyBody help me outpublic static ?????? AttributeListByType(SMDSCommon.AttributeOftype objAttributeOftype, IObjectScope objScope)
{
var data = from aAttribute in objScope.Extent<SMDS.DataAccess.Attribute>()
from aAttributeContentType in objScope.Extent<AttributeContentType>()
where
aAttribute.Id == aAttributeContentType.AttributeId
&& aAttribute.DeleteFlag == (sbyte)SMDSCommon.Delete.No
&& aAttribute.IsActive == (sbyte)SMDSCommon.Delete.Yes
&& aAttribute.IsApproved == (sbyte)SMDSCommon.Delete.Yes
&& aAttribute.AttributeOfType == objAttributeOftype.ToString()
orderby aAttribute.FieldOrder ascending
select new
{
aAttribute,aAttributeContentType
};
return data;
}