示例#1
0
            private ODataResource CreateEntry(OeEntryFactory entryFactory, Object entity)
            {
                ODataResource entry = entryFactory.CreateEntry(entity);

                if (QueryContext.MetadataLevel == OeMetadataLevel.Full)
                {
                    entry.Id = OeUriHelper.ComputeId(QueryContext.ODataUri.ServiceRoot, entryFactory.EntitySet, entry);
                }
                return(entry);
            }
示例#2
0
            private ODataResource CreateEntry(OeEntryFactory entryFactory, Object entity)
            {
                ODataResource entry = entryFactory.CreateEntry(entity);

                if (MetadataLevel == OeMetadataLevel.Full)
                {
                    entry.Id = OeUriHelper.ComputeId(BaseUri, entryFactory.EntitySet, entry);
                }
                return(entry);
            }