예제 #1
0
 public CswNbtMetaDataNodeType getNodeTypeLatestVersion(Int32 NodeTypeId)
 {
     return((CswNbtMetaDataNodeType)_CollImpl.getWhereFirst(@"where nodetypeid = (select max(nodetypeid) maxntid
                                                                                      from nodetypes 
                                                                                     where firstversionid = (select firstversionid 
                                                                                                               from nodetypes
                                                                                                              where nodetypeid = " + NodeTypeId.ToString() + "))"));
 }
 public CswNbtMetaDataObjectClassProp getObjectClassProp( Int32 ObjectClassId, string ObjectClassPropName, CswDateTime Date = null )
 {
     return (CswNbtMetaDataObjectClassProp) _CollImpl.getWhereFirst( "where objectclassid = " + ObjectClassId.ToString() + " and lower(propname) = '" + CswTools.SafeSqlParam( ObjectClassPropName.ToLower() ) + "'", Date );
 }
예제 #3
0
 public CswNbtMetaDataNodeTypeTab getNodeTypeTab( Int32 NodeTypeId, string NodeTypeTabName, bool BypassModuleCheck = false )
 {
     return (CswNbtMetaDataNodeTypeTab) _CollImpl.getWhereFirst( "where nodetypeid = " + NodeTypeId.ToString() + " and lower(tabname) = '" + CswTools.SafeSqlParam( NodeTypeTabName.ToLower() ) + "'", null, BypassModuleCheck );
 }
예제 #4
0
 public CswNbtMetaDataFieldType getFieldType( CswEnumNbtFieldType FieldType )
 {
     return (CswNbtMetaDataFieldType) _CollImpl.getWhereFirst( "where lower(fieldtype)='" + FieldType.ToString().ToLower() + "'" );
 }
예제 #5
0
 public CswNbtMetaDataNodeTypeProp getNodeTypePropVersion( Int32 NodeTypeId, Int32 NodeTypePropId )
 {
     return (CswNbtMetaDataNodeTypeProp) _CollImpl.getWhereFirst( "where nodetypeid = " + NodeTypeId.ToString() + " and firstpropversionid = (select firstpropversionid from nodetype_props where nodetypepropid = " + NodeTypePropId.ToString() + ")" );
 }
예제 #6
0
 public CswNbtMetaDataObjectClass getObjectClass(CswEnumNbtObjectClass ObjectClass)
 {
     return((CswNbtMetaDataObjectClass)_CollImpl.getWhereFirst("where objectclass = '" + ObjectClass.ToString() + "'"));
 }
 public CswNbtMetaDataPropertySet getPropertySet(string PropertySet)
 {
     return((CswNbtMetaDataPropertySet)_CollImpl.getWhereFirst("where name = '" + PropertySet + "'"));
 }