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 ); }
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 ); }
public CswNbtMetaDataFieldType getFieldType( CswEnumNbtFieldType FieldType ) { return (CswNbtMetaDataFieldType) _CollImpl.getWhereFirst( "where lower(fieldtype)='" + FieldType.ToString().ToLower() + "'" ); }
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() + ")" ); }
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 + "'")); }