This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi there,
There is strange thing happened when we use SP against Oracle 10g, a very simple select statement, first column is 'Id', along with other four columns. It return right 'Id' value, but other column values are empty. Any thoughts?
Thanks in advance. Lake.
I post SP here.
==================== CREATE OR REPLACE |
|
|
If the values other than Id are being returned as null (or the default value for that type) then it sounds like there may be an error with how the mapping is defined on the entity. Can you post the details for the entity you are mapping this into?
Thanks! Jeremy |
|
|
Hi Jeremy,
I post the code here, please let me know what else you want. Thanks a lot! ================ [Serializable] #endregion
public System.Nullable<decimal> DesignerCuId public string WorkLocationId public string Name0 public string Value0 #endregion |
|
|
The names of the columns being returned from the stored procedure dont map to what are defined in the entity so this will be what is causing the empty values. You will either need to update the stored procedure to return the same names as are expected in the entity, for example you have: CU_METADATA.DESIGN_ID AS Id So similarly you would want to alias the other columns, e.g. CU_METADATA.DESIGNER_CU_ID as DesignerCuId, Alternatively if you can specify the column name if those are going to be the names you consistently select out when fetching data for that table by assigning the column name property for each entity property within the LightSpeed designer by selecting the entity property and then editing the column name within the properties pane.
Jeremy |
|