Many to Many RelationShip strange behavior RRS feed

  • Question

  • User-1759624489 posted

    I have the the following tables. Supplier, Conttract by Supplier, Assets, And AssetsByContract.

     The table Contract has (startdate, enddate, document path)

    The table Assets has(name, description,serial, model, etc)

    The table AssetsByContract has ContractId and AssetId


    I created a custom page and dinamically in the gridview its showing me the Field Document Path from the Contract Table and the Field Name from the asset table.


    What about if I would like to change that?


     namespace Sodexo.Entities
        public partial class ContractAsset

        [DisplayName("Activos por Contrato")]
        public class ContractAssetMetaData
            public object ContractId { get; set; }

            public object AssetId { get; set; }

            public object Asset { get; set; }

            public object Contract{ get; set; }


    Wednesday, September 10, 2008 11:58 AM