private AssetDTO Map(tblAsset tbl)
 {
     var dto = new AssetDTO
                   {
                       MasterId = tbl.Id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       AssetNo = tbl.AssetNo,
                       AssetCategoryMasterId = tbl.AssetCategoryId ?? Guid.Empty,
                       AssetStatusMasterId = tbl.AssetStatusId ?? Guid.Empty,
                       AssetTypeMasterId = tbl.AssetTypeId,
                       Name = tbl.Name,
                       Capacity = tbl.Capacity,
                       Code = tbl.Code,
                       SerialNo = tbl.SerialNo
                   };
     return dto;
 }
 /// <summary>
 /// Create a new tblAsset object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="assetTypeId">Initial value of the AssetTypeId property.</param>
 /// <param name="iM_DateCreated">Initial value of the IM_DateCreated property.</param>
 /// <param name="iM_DateLastUpdated">Initial value of the IM_DateLastUpdated property.</param>
 /// <param name="iM_Status">Initial value of the IM_Status property.</param>
 public static tblAsset CreatetblAsset(global::System.Guid id, global::System.Guid assetTypeId, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblAsset tblAsset = new tblAsset();
     tblAsset.Id = id;
     tblAsset.AssetTypeId = assetTypeId;
     tblAsset.IM_DateCreated = iM_DateCreated;
     tblAsset.IM_DateLastUpdated = iM_DateLastUpdated;
     tblAsset.IM_Status = iM_Status;
     return tblAsset;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the tblAsset EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblAsset(tblAsset tblAsset)
 {
     base.AddObject("tblAsset", tblAsset);
 }