Azavea.Open.DAO.Firebird.FirebirdDaLayer.StoreRoomMissing C# (CSharp) Method

StoreRoomMissing() public method

Returns true if you need to call "CreateStoreRoom" before storing any data. This method is "Missing" not "Exists" because implementations that do not use a store room can return "false" from this method without breaking either a user's app or the spirit of the method. Store room typically corresponds to "table". Firebird doesn't appear to support the SQL standard information_schema.
public StoreRoomMissing ( ClassMapping mapping ) : bool
mapping ClassMapping
return bool
        public override bool StoreRoomMissing(ClassMapping mapping)
        {
            int count = SqlConnectionUtilities.XSafeIntQuery(_connDesc,
                "select count(*) from rdb$relations where rdb$relation_name = '" +
                mapping.Table.ToUpper() + "'", null);
            return count == 0;
        }